Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
MaheeeSyed authored Jan 5, 2025
1 parent a6c7972 commit dfb88c3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,27 @@ nav ul li a:hover {
color: black; /* Invert text color */
}

/* Mobile Responsiveness */
/* Mobile Responsiveness (Horizontal Fit) */
@media (max-width: 768px) {
nav {
/* No change to the flex direction */
padding: 10px; /* Reduce padding */
}
nav .logo{
font-size: 1.2em;
margin-left: 5px;

nav .logo {
font-size: 1.2em; /* Reduce logo font size */
margin-left: 5px; /* Reduce logo margin */
}

nav ul {
gap: 5px; /* Reduce gap to fit more items */
gap: 5px; /* Reduce gap between items */
flex-wrap: nowrap; /* Prevent wrapping to the next line */
overflow-x: auto; /* Allow horizontal scrolling */
}

nav ul li a {
font-size: 1em; /* Slightly reduce font size */
font-size: 1em; /* Reduce font size */
padding: 5px 7px; /* Reduce padding */
white-space: nowrap; /* Prevent text wrapping within links */
}

h2 {
Expand Down

0 comments on commit dfb88c3

Please sign in to comment.