• I’m trying to include an image in my css. I am pretty sure I have the coding correct; I have the image in the appropriate directory but it’s still not displaying. Maybe I did something wrong…
    body {
    background-image: url(“wp-images/sky.jpg”);
    and my background image is in the wp-images area of my wordpress directory. Any ideas what I’m doing incorrectly?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter gankaku

    (@gankaku)

    Never mind; I figured it out.
    background: #color needs to be replaced with background: url(wp-images/sky.jpg)
    I didn’t know there was a conflict between background and background-image, and that background-image is not used.
    Could someone please explain why we can’t use background-image and background? Maybe it’s not necessary to have both. It’s just that normal css allows us to use both.

    dihybrid

    (@dihybrid)

    I’ve been killing myself trying to get the background to change from the standard default gray to my own image. But nothing I do seems to change it, even changing the name to background:

    Here’s what I have now-

    body {<br />
    background: url('https://www.dihybridcross.com/propaganda/wp-content/themes/jtronvariation1/images/background.jpg');<br />
    font-size: 62.5%; /* Resets 1em to 10px */<br />
    font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;<br />
    color: #333;<br />
    text-align: center<br />
    }

    I’ve tried about a dozen variations of that, including putting the background tag in different places. Most of the time I can’t get the page to change at all, let alone get it to do what I want it to do?

    My url: https://www.dihybridcross.com/propaganda

    help

    Root

    (@root)

    bracket missing on the url. Plus W3C spec requires color before url in case img does not load.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-layout and image’ is closed to new replies.