SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Webpage align to right while loading in firefox

    Dear all, I've got a problem here with the html. If you are using firefox and browsing thru the pages, each time when the page load, the page was align to right but quickly align to center after the loading is finish.

    IE doesn't has this problem. It loads nicely. Here's the website: http://www.ir-sr.com/newsite2

    what is the problem? html?

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,095
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hi jewei, Welcome!

    Not exactly sure, I think it has something to do with the way it loads the tables, I think in one of the browsers it is having to download the whole table before it is displayed, in the other it is displaying it progressively as it downloads more.

    A fix could be replacing the surrounding table with a container div

    Code:
    <div id='container'>
    Content goes here
    </div>
    Then the CSS

    #container {
    width: 835px;
    margin: 0 auto; /* Center*/
    }

    You could obtain faster load times if you dropped some more of the tables though too.

    All the best,

  3. #3
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up It Works!!

    Thank you markbrown4!

    It works like charm..

    I guess I have to convert the rest of tables into div.

    Thanks again!

  4. #4
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you don't need to convert all your content over. just where it's practical.

  5. #5
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rimian
    you don't need to convert all your content over. just where it's practical.
    Tables should only be used for displaying tabular data. You should never use tables for layout.


Bookmarks

Posting Permissions

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