Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nav bar formatting error.

Featured Replies

Hi,

 

Please see the below linked image showing my issue. All im going to say is Contact. ;)

 

 

 

HTML:

	<header class="header-one" id="HOME">
		<div class="">
			<!-- NAVIGATION -->


			<nav class="navbar navbar-default navbar-fixed-top">
				<div class="container">
					<div class="navbar-header">
						<button class="navbar-toggle collapsed" data-target="#my-navbar-collapse" data-toggle="collapse" type="button"><span class="sr-only">Toggle navigation</span> <span class=
						"icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></button> <!-- TEMPLATE LOGO -->


						<div class="navbar-brand">
							<a href="#"><img alt="img" src="images/logo.png"></a>
						</div>
					</div>


					<div class="collapse navbar-collapse" id="my-navbar-collapse">
						<ul class="nav navbar-nav navbar-right" id="nav">
							<li class="active">
								<a href="">HOME</a>
							</li>


							<li>
								<a href="https://members-area.bostonrowingclub.co.uk">MEMBERS AREA</a>
							</li>


							<li>
								<a href="#ABOUT">ABOUT</a>
							</li>


							<li>
								<a href="#GALLERY">GALLERY</a>
							</li>


							<li>
								<a href="#NEWS">NEWS</a>
							</li>


							<li class="has-sub-menu">
								<a href="#UPCOMING">(UPCOMING) EVENTS</a>

								<ul class="sub-menu">
									<!--
                                                        **EVENT WITH NO SUB CATEGORY**


                                    <li>
                                        <a href="Evemt.html">Event</a>
                                    </li>


                                    !-->


									<li class="has-sub-menu">
										<a href="head.html">HEAD</a>

										<ul class="sub-menu">
											<li>
												<a href="single-right-sidebar.html">Overview</a>
											</li>


											<li>
												<a href="single-left-sidebar.html">Competitors Info</a>
											</li>


											<li>
												<a href="single-full-width.html">Entries</a>
											</li>


											<li>
												<a href="single-left-sidebar.html">Records</a>
											</li>
										</ul>
									</li>
								</ul>
							</li>


							<li class="has-sub-menu">
								<a href="marathon.html">MARATHON</a>

								<ul class="sub-menu">
									<li>
										<a href="single-right-sidebar.html">Overview</a>
									</li>


									<li>
										<a href="single-left-sidebar.html">Competitors Info</a>
									</li>


									<li>
										<a href="single-full-width.html">Entries</a>
									</li>


									<li>
										<a href="single-left-sidebar.html">Records</a>
									</li>
								</ul>
							</li>
						</ul>


						<ul>
							<li class="last">
								<a href="index.html#CONTACT">CONTACT</a>
							</li>
						</ul>
					</div>
				</div>
			</nav>
		</div>
	</header>

Provide a link to the site - it's much easier to diagnose the problem (which is probably your CSS not the actual nav bar).

  • Author

Provide a link to the site - it's much easier to diagnose the problem (which is probably your CSS not the actual nav bar).

 

 

Hi,

 

I'll just upload it temporarily now.

 

 

Kind regards,

 

Lewis.

  • Author

Provide a link to the site - it's much easier to diagnose the problem (which is probably your CSS not the actual nav bar).

 

 

 

Hi,

 

I'll just upload it temporarily now.

 

 

Kind regards,

 

Lewis.

 

Hi,

 

As a quick note I have not changed the CSS for a while so I know the issue lies with the HTML somewhere.

 

 

The link is:

 

 

 

Kind regards,

 

Lewis.

Edited by Louwwieee42

The contact list item isn't in the same list as the rest of the nav.

 

And in any case the nav bar jumps to the hamburger as soon as the screen gets a bit narrow. That's a CSS issue

Edited by fisicx

  • Author

The contact list item isn't in the same list as the rest of the nav.

 

And in any case the nav bar jumps to the hamburger as soon as the screen gets a bit narrow. That's a CSS issue

 

Sorry i'm new to all of this, how would I go about resolving these issues?

You need to edit the code. I don't know how you are building the site but whatever method it is you need to be in code view and shift the link back into the main <UL>...</UL>

 

It's late here in the UK. I'll look again tomorrow if nobody else has managed to help in the meantime

Which means the 'contact' link isn't quite in the right place in the code.

 

From the screenshot, delete lines 152 to 156

 

Then paste

<li class="last">
<a href="index.html#CONTACT">CONTACT</a>
</li>

between lines 148 and 149

 

That should fix things

 

But there are still a whole load of things need fixing - anything less than a wide screen really messes with the navbar.

Edited by fisicx

  • Author

Which means the 'contact' link isn't quite in the right place in the code.

 

From the screenshot, delete lines 152 to 156

 

Then paste

<li class="last">
<a href="index.html#CONTACT">CONTACT</a>
</li>

between lines 148 and 149

 

That should fix things

 

But there are still a whole load of things need fixing - anything less than a wide screen really messes with the navbar.

 

 

Hi,

 

I agree regarding the other issues, which is why im looking for some help with that too.

Please see the below screen shots.

 

It's still not in the right place. The <li>...</li> needs be inside the closing </ul> of the main navigation list.

 

Change this:

<li>
<a href="single-left-sidebar.html">Records</a>
</li>
</ul>
</li>
</ul>
<ul>
<li class="last">
<a href="index.html#CONTACT">CONTACT</a>
</li>
</ul>

To this:

<li>
<a href="single-left-sidebar.html">Records</a>
</li>
</ul>
</li>
<li class="last">
<a href="index.html#CONTACT">CONTACT</a>
</li>
</ul>

But it's really not going to work how you want it to even if you do get the Contact in the right place.

 

The whole thing uses bootstrap which isn't the best basis for any website.

It's got do to with how the lists a structured. You have a primary <ul> which holds all the top leve nav items. The last of these is the 'contact' link.

Within the list items you have a nested <ul> which holds the dropdown list items.

 

You have got something awry with the list structures. Unless you make it live it's not possible to give any further advice

  • Author

I'll upload the new version to the test site now. It was all working okay so i know my CSS and that is fine it's just some Tag issues or whatever somewhere.

 

 

The link is: https://bostonrowingclub.blacklabelhost.com

 

 

 

 

EDIT:

 

The new version is now live.

Edited by Louwwieee42

You have got the 'contact' list item inside the 'events' submenu.

 

Move it outside the list item for upcoming events. It's been the same issue the whole time - your list structures are all messed up.

 

If you want me to fix this send the file to graham @ aerin.co.uk

  • Author

You have got the 'contact' list item inside the 'events' submenu.

 

Move it outside the list item for upcoming events. It's been the same issue the whole time - your list structures are all messed up.

 

If you want me to fix this send the file to graham @ aerin.co.uk

 

Hey,

 

In-case you haven't already seen I have emailed you. :unsure:

 

 

Kind regards,

 

Lewis.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.