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
    May 2010
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Safari Centre Problem

    Hi Guys,

    Im trying to figure out why Safari isn't centering my main content <div>. Chrome and FF both display the page correctly - but for some reason Safari throws that main content box right over to the far right.

    Any clues?

    P.S. not sure if this is a Javascript question, but I'll ask anyway: how come when I first load the page the bottom half of the screen is white, instead of the specified background color? Once I refresh the page it works (it also corrects itself once you use the Fancy Box script when you click the pictures etc.)...but whenever you go to the page, after visiting another, the same problem occurs.

    Thanks guys

    Page URL: http://thenativedrum.com/practice/

  • #2
    Regular Coder optimus203's Avatar
    Join Date
    Sep 2008
    Location
    CT
    Posts
    317
    Thanks
    22
    Thanked 16 Times in 15 Posts
    Your missing a closing add.

    1 - add </div> right before body tag. This will close the "wrapper" div.
    2 - add <br clear="all" /> right before <div id="frame">
    Always thank those CF Users who help you solve issues...
    Connecticut Web Design

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You need to clear the floats for your navigation. Add clear:both to #frame. Yes as said above close your #wrapper but don't add the br tag suggested. There is no need for it and don't use clear="all". That attribute is deprecated and the br creates unneeded space.
    Last edited by _Aerospace_Eng_; 06-04-2010 at 05:08 AM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder optimus203's Avatar
    Join Date
    Sep 2008
    Location
    CT
    Posts
    317
    Thanks
    22
    Thanked 16 Times in 15 Posts
    Your right. My bad.
    Always thank those CF Users who help you solve issues...
    Connecticut Web Design


  •  

    Posting Permissions

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