WordPress.org

Ready to get started?Download WordPress

Forums

background images (4 posts)

  1. jpierre
    Member
    Posted 10 years ago #

    Probably old stuff, but:
    could someone state the basic steps in putting a backgroung image (i.e. texture) in the body div? I've tried various was but nothing seems to work. I use the absolute url (http://domain.com/images/whatever.gif). Is that right?
    And: in the css, under body I use
    background-image: img src="http://domain.com/images/whatever.gif";
    I even tried putting it in the index.php, in the rap div.
    Nothing goes. So if you ever...
    JP

  2. jpierre
    Member
    Posted 10 years ago #

    Thanks Stev. but doesn't work either. Probably some syntax error. :(
    JP

  3. gregor
    Member
    Posted 10 years ago #

    Make sure the path to your image is correct ( relevant to where the CSS file lies). For example:
    site root> wordpress> my_blog> assets> mycss.css
    site root> wordpress> my_blog> assets> images> bkg> image.gif
    The CSS would read:
    body {
    background: url(images/bkg/image.gif) no-repeat top left; }
    The image and the CSS file both lie in the assets folder ... so you just have to tell the CSS to look two folders "lower", in the "images" and then "bkg" folder, for the background image.

  4. jpierre
    Member
    Posted 10 years ago #

    Thanks a lot gregor. Now everythig is ok. :)
    JP

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.