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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:18:11+00:00 2026-06-10T12:18:11+00:00

I have simple page using a two-column page layout that breaks on zooming. Here

  • 0

I have simple page using a two-column page layout that breaks on zooming. Here it is – try zooming in with cmd+:

http://jamesabbottdd.com/ems-with-max-width.html

The header breaks on the right side, causing a horizontal scrollbar to appear. Originally I thought this was due to using pixels for sizing elements and setting max-width. This article is about that very problem:

http://blog.cloudfour.com/the-ems-have-it-proportional-media-queries-ftw/

Then I overrode pixels with ems but the problem persists.

This intrigues me to no end. I’ve been using CSS for about a decade now, the last 3 years on a high level, but haven’t yet figured out why the above page breaks but this one:

http://framelessgrid.com/

does not, regardless of how closely I zoom in.

Any help greatly appreciated.

  • 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-10T12:18:12+00:00Added an answer on June 10, 2026 at 12:18 pm

    Hmmm, it looks a bit like you’ve inadvertently linked together two slightly unrelated observations, making it a bit more difficult to diagnose the actual problem.

    Separating the Symptoms

    Based on your screenshot, it does appear that your header is coming up with some visual glitches. Additionally, a horizontal scrollbar appears – but rest assured that this is not due to any property of your header. In fact, it is due to your wrapper div below the header, which has a width of 1130px. So when you zoom in that much, it can’t all show on the screen, and thus creates the scrollbar.


    The True Issue

    Returning to the problem with your header though, the reason why the colour is disappearing is because your header div has a width of 100%. If, when you took that screenshot, you were scrolled all the way to the left, you would have seen no problem with the header’s background colour, because it would have covered 100% of the browser’s width. (If you’re wondering where this width of 100% came from, it’s due to the h1 element inside the header; an h1 generally has a default width of 100%, a style you wouldn’t be able to see even with an element inspector like Firebug open.)

    Note that the site you provided does not display this issue due to a few things: first, its header doesn’t have a background colour, so you wouldn’t see any kind of issue in that respect (if it did have one though, you’d immediately see that the div doesn’t actually span the whole screen as yours does; it is only a little wider than the text within, and has a fixed width. The title is centred not through only usage of the h1 element’s width of 100% and text-align:center, but is also due to the margin:0 auto applied to the header div. But now, how to fix your issue?


    A Solution

    With the current structure of your page, the easiest solution would be to give your header div a defined width. Well, not a width per se, but rather a min-width, one which is identical to the width of your wrapper div. If you give it the style of min-width:1130px, you should see your problem solved.

    I hope this was helpful! (Sorry if it was a little long to read, though.)

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

Sidebar

Related Questions

I'm using PeerTracker http://en.wikipedia.org/wiki/PeerTracker to track torrent hashes. I have a simple HTML page
I'm using the jQueryUI (extension?) and have a simple overlay on a page. Here's
I have a simple page here to demonstrate the issue that I am seeing.
I have a simple html page that only uses PHP in two places <?php
I have a simple HTML page (ratings.html) that I'm trying to test using HtmlUnit.
I have a simple HTML page that contains two tabs that show/hide content in
i have this simple code to load data from other php page using get
I have a very simple page with which a user uploads a file. Using
I am using jQuery for a simple website and have a main page 'index.html'
I have simple HTML page with svg like this: <div id=plan> <svg xmlns=http://www.w3.org/2000/svg version=1.1>

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.