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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:50:38+00:00 2026-06-12T18:50:38+00:00

So I have a header/navigation bar div, this div has a repeat-x background image.

  • 0

So I have a header/navigation bar div, this div has a repeat-x background image.
Than I’ve got a horizontal navigation which is centered over this background, but needs a min-width and normal width.

I’d like for it to show up as 80% width, and min-width 1000px, and centered.

CSS

.center-wrap {
width: 80%;
min-width: 1000px;
margin: 0 auto;
}
#bar {
width: 100%;
height: 50px;
background-image: url(images/background.jpg);
background-repeat: repeat-x;
}

HTML

<div id="bar">
    <div class"center-wrap">
        UL LI HERE
    </div>
</div>

Error

Now the problem with this is if I resize the page to below 1000px the repeat-x background image cuts off (when scrolling -> to reveal the rest of the website).

How would I go about keeping my repeat-x background image on #bar and keeping the center-wrap centered and include a min-width and percentile width?

  • 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-12T18:50:40+00:00Added an answer on June 12, 2026 at 6:50 pm

    Add this to your Css, Magic! 😀

    body{min-width: 1000px;}
    

    The problem is that the body is taking the window object width as max width, and the descendant are taking that width as heritage. What happens is:

    You resize the window(browser) to 300px width, then body’s width = 300px, then .center-wrap = 80% of 300px, so setting min-width of body to a fixed number fixes it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Header/navigation bar on a site, it has a logo, navigation menu,
Imagine I have a navigation bar in my page header, with a number of
I have a page that consists of a header div for navigation, a content
assume I have a such html order <div id=header>>Header(logo, navigation menus etc)will be here,
I have a jQM application that uses the header as a navigation bar. The
In a site navigation bar, I have some logic that determines which page the
Something basic that i don't understand: I have header.php with navigation bar for my
I have a header area which is divided up into block areas for images,
I have a header file like this: #ifndef __GEN_NOTE_MARKERS_TO_DEVELOPERS_HPP__ #define __GEN_NOTE_MARKERS_TO_DEVELOPERS_HPP__ #ifdef _DEBUG //
I have a div along the left side of my page for navigation links.

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.