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

  • SEARCH
  • Home
  • 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 7654901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:22:30+00:00 2026-05-31T12:22:30+00:00

I was browsing the other related threads but i couldnt find a fix.. The

  • 0

I was browsing the other related threads but i couldnt find a fix..
The Div does not fill 100% of the screen with the chosen background color, only the width of the <li>
CSS:

#menuspace{
    background: #2175bc;padding:0;margin:0;width:100%;
}
#menubutton {
margin:0;
    padding: 0;
    width:100%;
}

#menubutton li {
    display: inline;
}

#menubutton li a {
    font-family: Arial;
    font-size:11px;
    text-decoration: none;
    float:left;
    padding: 10px;
    background: #2175bc;
    color: #fff;
}

HTML:

<div id="menuspace">
<ul id="menubutton">
<li><a href="http://www.example.net/">Home</a></li>
</ul></div>
  • 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-31T12:22:32+00:00Added an answer on May 31, 2026 at 12:22 pm

    The problem is the ‘float: left’ on the #menubutton li a. Remove that and the div will go 100% of the screen. The float makes the parent div menuspaces think that there’s really no content contained in it (the div is actually going 100% but has no height). You could also leave the float in there and simply add some content:

    <div id="menuspace">
    <ul id="menubutton">
    <li><a href="http://www.example.net/">Home</a></li>
    </ul>Look the div goes to 100% now</div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was browsing related issues for my question but I can't seem to find
I have been browsing SO and various other sites to find out whether this
Been browsing the questions and Googling it but I can't seem to find a
browsing some html code I find a text input coded as: <input type=text name=Email<%=orderRow.ID
Related: What is the common header format of Python files? Where can I find
Please disregard the title. But my problem is related to it... ;-) Is there
I aint sure if I have asked this question in other threads as well
I have spent a LOT of time browsing the web to find a solution
I was browsing these PHP Coding Guidelines (a bit outdated but very interesting), and
I've been browsing through stackoverflow reading other questions about MSTest and DeploymentItem; I've followed

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.