Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7671415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:03:00+00:00 2026-05-31T16:03:00+00:00

I have made a navigation horizontal bar, but I seem to have a following

  • 0

I have made a navigation horizontal bar, but I seem to have a following issue with it and not sure what exactly could be causing it. I want the background to extend until the edge of the list.

enter image description here

HTML code…

<li><a href="<?php echo url('/'); ?>">Home</a></li>
<?php
if(!Auth::LoggedIn())
{
?>
    <li><a href="<?php echo url('/login'); ?>">Login</a></li>
    <li><a href="<?php echo url('/registration'); ?>">Register</a></li>
<?php
}
else
{
?>
    <li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>

<?php
}
?>
<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>
<li><a href="#">Airline</a>
    <ul id="nav">
    <li><a href="<?php echo url('/pages/about'); ?>">About&nbsp;Us</a></li> 
    <li><a href="<?php echo url('/pages/history'); ?>">History&nbsp;&&nbsp;Milestones</a></li> 
    <li><a href="<?php echo url('/pages/staff'); ?>">Staff</a></li> 
    <li><a href="<?php echo url('/pilots'); ?>">Pilot&nbsp;Roster</a></li> 
    </ul>
</li>
<li><a href="#">Careers</a>
    <ul id="nav">
    <li><a href="<?php echo url('/pages/managementopportunities'); ?>">Management&nbsp;Careers</a></li> 
    <li><a href="<?php echo url('/pages/stepone'); ?>">Pilot&nbsp;Careers</a></li> 
    </ul>
</li>
<li><a href="#">Operations</a>
    <ul id="nav">
    <li><a href="<?php echo url('/pages/fleet'); ?>">Fleet</a></li> 
    <li><a href="<?php echo url('/pages/hubs'); ?>">Hubs</a></li> 
    <li><a href="<?php echo url('/FrontSchedules'); ?>">Schedules</a></li> 
    </ul>
</li>
<li><a href="#">Community</a>
    <ul id="nav">
    <li><a href="#">Forums</a></li> 
    <li><a href="<?php echo url('/contact'); ?>">Contact&nbsp;Us</a></li> 
    </ul>
</li>

This is the CSS code I have.

ul#topnav {
list-style-type: none;
background-image: url(../images/navi_bg.png);
height: 30px;
width: 1020px;
margin:0 auto;
margin-bottom:10px;
margin-top:0px;
padding:0px;
border:2px solid #FF9;
}

ul#topnav li {
float: left;
}

ul#topnav a {
background-repeat: no-repeat;
background-position:right;
padding-right: 14px;
padding-left: 14px;
display: block;
line-height: 30px;
text-decoration: none;
font-family:Arial;
font-size: 13px;
color:#FF9;
}

ul#topnav a:hover {
color: #FFF;
background-image: url(../images/hover_bg.png);
background-repeat: repeat;
}

ul#nav {
margin: 0;
padding: 0;
list-style: none;
width: auto;
line-height:normal;
}

ul li {
position: relative;
}

li ul {
position: absolute;
left: 149;
top: 30;
background: #003663;
display: none;
z-index: 1;
}

ul li a {
display: block;
text-decoration: none;
}

li:hover ul, li.over ul { 
display: block; 
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:03:01+00:00Added an answer on May 31, 2026 at 4:03 pm

    You’re floating left your submenu list items as well, which is causing your background image to wrap around your list element instead of displaying as a block item. Modify the following rule to target only the children list items of your main nav ul:

    Change this

    ul#topnav li {
        float: left;
    }
    

    Into this

    ul#topnav > li {
        float: left;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made this centered navigation bar, and I wanted to add a :active
I have made a functional CSS navigation-bar, except for some fugly CSS side-effects --
I have made a list based navigation bar for my newest project and I
I have made a navigation bar using <ul> and <li> I would like to
I made this left navigation bar, like the picture below I want in in
Im have made a navigation bar for the top of site, the final look
I recently made this simple navigation where you have a couple links that have
I have made a cart and the cart has remove item button, but the
I have made a flashLike button with jquery via this code: $(document).ready(function() { $('#navigation
i have one tab bar controller with 4 navigation controller connection 4 tab bar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.