Skip to content

Commit

Permalink
4 across main buttons mobile 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjackolaisen committed Dec 11, 2024
1 parent 6a42a50 commit 15b98ac
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permalink: /statistics/partnerships/modern-business/
display: flex; /* Aligns the buttons in a row */
justify-content: space-between; /* Distributes space evenly between buttons */
gap: 10px; /* Adds space between each button */
flex-wrap: nowrap; /* Prevents buttons from wrapping to the next line */
flex-wrap: wrap; /* Allows buttons to wrap to the next line if needed */
}

.main-button {
Expand All @@ -36,7 +36,7 @@ permalink: /statistics/partnerships/modern-business/
text-decoration: none; /* Removes underline from the text */
transition: transform 0.3s, box-shadow 0.3s; /* Adds smooth transition effects */
box-shadow: 0 4px 6px rgba(0, 99, 160, 0.2); /* Adds a shadow for depth */
flex: 1 1 22%; /* Ensures four buttons fit across the page */
flex: 1 1 calc(25% - 20px); /* Ensures four buttons fit across the page */
margin: 5px; /* Adds margin around each button */
white-space: nowrap; /* Ensures text stays on one line */
}
Expand All @@ -52,6 +52,12 @@ permalink: /statistics/partnerships/modern-business/
border-bottom: 0; /* Removes the bottom border */
text-decoration: none; /* Ensures no underline on the text */
}

@media (max-width: 768px) {
.main-button {
flex: 1 1 100%; /* Ensures one button fits across the page on mobile */
}
}
</style>


Expand Down

0 comments on commit 15b98ac

Please sign in to comment.