Skip to content

Commit

Permalink
Update style.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaidElnasser authored Jan 25, 2024
1 parent 82411ae commit 3aa14ca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,19 @@ a {
}

.site-header {
width: 100%;
text-align: center;
text-align: center; /* Centers the image if it's an inline or inline-block element */
width: 100%; /* Ensures the header spans the full width */
overflow: hidden; /* Optional: in case the image is larger than the container */
}

.site-header img {
width: 100%;
height: auto;
max-height: 200px;
width: 100%; /* Scales the image to the width of the container */
height: auto; /* Maintains the aspect ratio */
max-width: original-image-width; /* Optional: replace with the original width of the image */
margin: 0 auto; /* Additional centering for block-level images */
}


.page-header {
color: $header-heading-color;
text-align: center;
Expand Down

0 comments on commit 3aa14ca

Please sign in to comment.