Skip to content

Commit

Permalink
nav3
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek-Servin committed Jul 25, 2024
1 parent 0068d87 commit 0226e45
Showing 1 changed file with 1 addition and 48 deletions.
49 changes: 1 addition & 48 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,53 +33,6 @@ body {
line-height: 1;
}

/* Add the following CSS to your existing stylesheet */

/* Basic styles for the navigation */
#nav {
background: #333;
color: #fff;
padding: 10px 0;
}

#nav ul {
display: flex;
list-style: none;
padding: 0;
margin: 0;
flex-wrap: wrap; /* Allow items to wrap into multiple rows */
justify-content: center; /* Center the items horizontally */
}

#nav li {
margin: 0 10px;
}

#nav a {
color: #fff;
text-decoration: none;
padding: 10px 15px;
display: block;
}

#nav a.active {
background: #555;
}

/* Responsive styles */
@media (max-width: 737px) {
#nav ul {
flex-wrap: wrap; /* Allow items to wrap into multiple rows */
}
#nav li {
width: 50%; /* Make each item take 50% of the width */
text-align: center; /* Center align text */
margin: 5px 0; /* Adjust margin for spacing */
}
}



ol, ul {
list-style: none;
}
Expand Down Expand Up @@ -3366,7 +3319,7 @@ input, select, textarea {
font-size: 0.9em;
}

@media screen and (max-width: 736px) {
@media screen and (max-width: 400px) {

#nav {
display: none;
Expand Down

0 comments on commit 0226e45

Please sign in to comment.