Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2009
    Posts
    57
    Thanks
    10
    Thanked 0 Times in 0 Posts

    In Chrome instead of fixed width, my site covers the entire screen

    Hi,

    My website looks fine on Firefox and IE with fixed width on different screen resolutions.
    On Chrome instead of having a fixed width, my site covers the entire screen,
    even in case of high resolution, and the site seems broken because of it.
    How can I fixed this annoying problem?

    My website: http://www.gamestoenjoy.com

    My CSS file: http://www.gamestoenjoy.com/site/tem...s/template.css

    Thanks a lot in advance

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    chrome sets a table to 100%;

    try defining a width for the table:

    Code:
    table {
     width: 960px;
     margin: auto;
    }

  • Users who have thanked Sammy12 for this post:

    gamestoenjoy (07-06-2011)

  • #3
    New Coder
    Join Date
    Feb 2011
    Posts
    41
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Hello ,
    you haven't provided the width to your main table so it is not proper in the chrome .
    different kinds of browser differently to table element i have made changes to the code
    paste this code . i have just added the div before table and provided width and to center it
    i used margin 0 auto property.

    please find the code here
    put this div wrapping your main table
    <div style="width:990px;margin:0 auto">
    your main table goes here
    </div>

  • Users who have thanked shankar.adodis for this post:

    gamestoenjoy (07-06-2011)

  • #4
    New Coder
    Join Date
    Nov 2009
    Posts
    57
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Thanks a lot!
    I added width to the table tag and now my site has fixed width also on Chrome.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •