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 7984485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:17:05+00:00 2026-06-04T11:17:05+00:00

I have still having some CSS trouble with this and I cannot seem to

  • 0

I have still having some CSS trouble with this and I cannot seem to fix it.
I just made a test page here to see if anyone can help:

The html:

<div class="menu_background">
    <div class="menu">This is my menu</div>
</div>

The CSS:

body {
background-color: #FFC;
margin:0;
padding:0
}
.menu_background {
background:url(images/headline.jpg) repeat-x;
}
.menu {
width:60em;
margin:0 2em;
border:solid 1px #F00;
color:#FFF
}

The problem: there is a weird overlapping happening when you shorten the browser window, making it smaller than 60em.

You can look at the test page and here are two screenshots:

1. This is when the browser is full size:
enter image description here

  1. This is when i shorten the browser window and scroll right:
    **enter image description here**

The best way is to look at my test page and see for yourself.

  • 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-06-04T11:17:07+00:00Added an answer on June 4, 2026 at 11:17 am

    to avoid that put the background in your menu directly

    .menu {
      background:url(images/headline.jpg) repeat-x;
      width:60em;
      margin:0 2em;
      border:solid 1px #F00;
      color:#FFF
    }
    

    (review)
    to have background 100%

    .menu_background {
       background:url(http://phpblog.inutritie.ro/images/headline.jpg) repeat-x;
       min-width: 64em;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok I am still having some issues with this code below. I have received
I am having some trouble with this. We basically have been asked to create
I have seen the other posts but I am still having trouble. Below is
Hi I am having problems with some css classes in joomla. I have two
I've read through the various posts on SO about this, but have still not
I still have issues reading UML diagrams. Just looking at the Builder pattern http://en.wikipedia.org/wiki/Builder_pattern
Thanks for the help below, however, I'm still having some problems, I'll try and
I have to port some C# code to Java and I am having some
I am having trouble building a Form with some fancy jquery, similar to tumblr's
I am having some issues with my status bar. This is an iPhone app,

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.