Skip to content

Commit

Permalink
Better alignment for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
charitea committed Nov 12, 2024
1 parent b3ce6da commit c9a5b53
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ body, html {
/* Banner Buttons */
.banner-buttons {
position: absolute;
top: 65%;
top: 70%; /* Changed from 60% to be farther from logo on desktop */
left: 50%;
transform: translate(-50%, -50%);
display: flex;
Expand All @@ -55,7 +55,7 @@ body, html {
justify-content: center;
width: 90%;
max-width: 500px;
}
}

.banner-button {
padding: 12px 32px;
Expand Down Expand Up @@ -297,14 +297,17 @@ body, html {
/* Media Queries */
@media (max-width: 768px) {
.banner-buttons {
top: 70%;
top: 65%; /* Closer on mobile */
gap: 15px;
flex-direction: column;
width: 80%;
}

.banner-button {
padding: 10px 20px;
min-width: 120px;
font-size: 16px;
width: 100%; /* Full width when stacked */
}

.store-promo {
Expand Down Expand Up @@ -341,7 +344,8 @@ body, html {

@media (max-width: 480px) {
.banner-buttons {
top: 70%;
top: 62%; /* Even closer on smaller screens */
width: 75%;
gap: 10px;
}

Expand Down Expand Up @@ -383,6 +387,11 @@ body, html {
}

@media (max-width: 320px) {
.banner-buttons {
width: 90%;
gap: 8px;
}

.banner-button {
padding: 6px 12px;
font-size: 13px;
Expand Down

0 comments on commit c9a5b53

Please sign in to comment.