CSS - pages displaying different widths in Chrome, IE and Firefox

Posted on 2012-08-15
Last Modified: 2012-08-19

Please bear with me as I'm a back-end programmer and my knowledge of .css is fairly limited just now.  Anyway, I've inherited a site which was designed by another company and looking at the .css file I see a page width of 960px which looks about right in Chrome but it looks a  lot narrower (and probably better in Firefox).  There must be some extra code I need to add to the .css to get it to display the correct width in all 3 browsers.  The development site is at:

The .css which I think sets the width for the outer div is:

#subSurround {
      width: 960px;
      margin: 0px auto;
      padding-bottom: 30px;

I would be grateful if someone could tell me what I need to change :-).
Question by:Lorna70
    LVL 49

    Assisted Solution

    by:Julian Hansen
    Looks the same to me in both. You shouldn't need to change anything. FF and chrome are 99% of the time the same in how they render it is IE that is the odd ball.

    Can you post screen shots of what you are seeing?
    LVL 42

    Assisted Solution

    by:Chris Stanyon
    Looked at your site in Firefox, IE, Chrome, Opera and Safari and it looks the same in all of them - 960px wide!
    LVL 2

    Accepted Solution

    Do you have the zoom set the same in your various browsers? Perhaps that is why you're seeing different things.

    Author Comment

    Doh - yes must be lol!  thanks guys :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
    Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
    In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now