WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] background-image disappearing after load (3 posts)

  1. connectto
    Member
    Posted 1 year ago #

    hello

    i added an background-image to my wordpress website

    but when i open the website, my background only appears about 2 seconds - the time to load the page, then disappears and the background turn white

    heres my page http://www.connectto.com.br/websites/

    i added the code above to style.css

    body {
    background: #e2e2e2;
    background: url(images/bg-connectto.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }

    im doing my updates in a copy of tewntyeleven

    anyone can help please, need to know why this background-image keeps disapearing

    thanx,

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    probably caused by your javascript background image rotator;

    try and use absolute image url in that code.

    also, the code is inserted at an invalid location;
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.connectto.com.br%2Fwebsites%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    possibly move the javascript to just before the </head> tag.

  3. connectto
    Member
    Posted 1 year ago #

    really thanx alchymyth

Topic Closed

This topic has been closed to new replies.

About this Topic