Results 1 to 4 of 4

Thread: Why does my site sometimes look like this??

  1. #1
    Join Date
    Aug 2008
    Location
    karanganyar, solo, indonesia
    Posts
    161
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question Why does my site sometimes look like this??

    Sometimes my page loaded normal, but sometimes it display untidy div
    please see the image below

    the url of my page is http://m.smansakra.sch.id/friends/pr.../E0E0E0/5C7A99

    just clicking above page, and refresh, then refresh, and it will display untidy div..

    how can it happend,
    css is loaded normally

    thanks for helping
    ///////////////////////////////////////////////////
    ///// http://www.mediatutorial.web.id
    ///////////////////////////////////////////////////

  2. #2
    Join Date
    Jul 2010
    Location
    Minnesota
    Posts
    256
    Thanks
    1
    Thanked 21 Times in 21 Posts

    Default

    Because you are floating the divs when the first div in the row has a symbol next to the person name and the second name does not, the spacing is pushing the div to the right to clear the div on the left.

    Assign a height to the divs that will always accommodate the symbol and name and it should work fine.

  3. #3
    Join Date
    Aug 2008
    Location
    karanganyar, solo, indonesia
    Posts
    161
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Thumbs up Thanks

    Quote Originally Posted by fastsol1 View Post
    because you are floating the divs when the first div in the row has a symbol next to the person name and the second name does not, the spacing is pushing the div to the right to clear the div on the left.

    Assign a height to the divs that will always accommodate the symbol and name and it should work fine.
    aha, i think you right, thanks so much, i don't know about it before :d
    ///////////////////////////////////////////////////
    ///// http://www.mediatutorial.web.id
    ///////////////////////////////////////////////////

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    And/or you could make sure there's a default symbol for this display when none has been configured.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •