WordPress.org

Ready to get started?Download WordPress

Forums

div wrapper background image does not show in Safari?? (6 posts)

  1. maxl23
    Member
    Posted 4 years ago #

    Hi

    I am using a wrapper div to create a background image which spans both the sidebar and the main column... I have added to the index.php:

    <div id=”wrapper”>
    <div class=”maincolumn”> content </div>
    <div class=”sidebar”> sidebar content </div>
    </div>

    and then the following in the CSS:

    #wrapper{
    background: url(images/main_bg.png);
    background-repeat:repeat-y;
    }

    It works fine in Firefox and ie but the background image isnt showing up at all in Safari

    Has anybody got any ideas??

    thanks maxl23

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Your CSS is incorrect. Try:

    #wrapper{background: url(images/main_bg.png) repeat-y;

  3. maxl23
    Member
    Posted 4 years ago #

    Hi Esmi

    It hasnt worked...? my main column and sidebar are both
    float:left; ... could this have anything to do with it??

    thanks in advance max

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Typo. Should be:

    #wrapper{background: url(images/main_bg.png) repeat-y;}

    Posting a link to your site would also help.

  5. maxl23
    Member
    Posted 4 years ago #

    Hi Esmi

    I had already added the "}"

    this is the site

    thanks for helping

    max

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    You have some validation errors on your site - the most serious ones caused by the fact that you either have no footer.php file or it lacks at least 1 </div> as well as the closing </body></html> tags. That could well throw some browsers off.

    There are also errors in your theme's stylesheets that need fixing.

Topic Closed

This topic has been closed to new replies.

About this Topic