Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix Responsive Navbar Alignment on Travel Website" #911

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@ <h3>
</script>

<script src="script.js"></script>
<header class="main-head">
<nav>
<div class="logo">
<img src="img/logo.png" id="logo-web">
<h1 id="logo"><a href="#home">BuddyTrail</a></h1>
</div>

<!-- Hamburger button for mobile -->
<button class="hamburger" id="hamburger">☰</button>
Expand Down Expand Up @@ -957,15 +963,13 @@ <h2>Content</h2>
<header class="forum_1">
<h1 id="h1darkbtn">Travel Discussion Forum</h1>
<nav class="hi">

<ul >
<li><a href="#destinations">Destinations</a></li>
<li><a href="#travel-planning">Travel Planning</a></li>
<li><a href="#experiences">Travel Experiences</a></li>
<li><a href="#gear">Travel Gear</a></li>
<li><a href="#safety">Travel Safety</a></li>
<li><a href="#sustainable">Sustainable Travel</a></li>

<ul>
<li class="NAVI"><a href="#destinations">Destinations</a></li>
<li class="NAVI"><a href="#travel-planning">Travel Planning</a></li>
<li class="NAVI"><a href="#experiences">Travel Experiences</a></li>
<li class="NAVI"><a href="#gear">Travel Gear</a></li>
<li class="NAVI"><a href="#safety">Travel Safety</a></li>
<li class="NAVI"><a href="#sustainable">Sustainable Travel</a></li>
</ul>
</nav>
</header>
Expand Down
21 changes: 9 additions & 12 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,18 @@
display: flex;
flex-direction: row;
justify-content: center;
width: 100vw;;
color: #ffffff;
padding: 50px;
/* text-align: center; */
margin: 10px 0px 40px;
border-radius: 8px;
max-width: 80vw;;
color: #ffffff;
padding: 50px;
text-align: center;
margin: 20px 0px 60px;
border-radius: 8px;
}
nav ul {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
justify-content: space-between;
justify-content: space-evenly;
align-items: center;
list-style-type: none;
padding: 0;
Expand All @@ -52,9 +51,8 @@ nav ul {
.hi ul li a{
background-color: #fff;
color: blue;
min-height:15vh;
font-size: 1.8rem;
font-weight: 500;
font-size: 2.2rem;
font-weight: 600;
padding: 15px;
border-radius: 7px;
box-shadow: 0 3px 13px rgba(0, 0, 0, 0.35);
Expand All @@ -66,7 +64,6 @@ nav ul {
box-shadow: 4px 4px 14px whitesmoke;
}


nav ul li {
display: inline;

Expand Down
Loading