CSS: background image

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Could you help me please with a simple  problem?
I want to have background image on some pages of a website I am
creating. I added a ass to Styles.css:
        background-image: "Images/DotNET_90x70_light.jpeg"
which I use on these pages
    <link rel="Stylesheet" type="text/css" href="Styles.css" />
    <body class="withbackground">
Could you explain me please why it doesn't work and how to do it
Thank you very much!


Re: CSS: background image

Quoted text here. Click to load it
"a class", of course...

Re: CSS: background image

R.A.M. wrote:

Quoted text here. Click to load it


    Value:      <uri> | none | inherit

And following the link to see where "<uri>" is described:


URI values in this specification are denoted by <uri>. The functional
notation used to designate URIs in property values is "url()", as in:

  BODY { background: url("http://www.bg.com/pinkish.gif") }

David Dorward       <http://blog.dorward.me.uk/ <http://dorward.me.uk/
                     Home is where the ~/.bashrc is

Re: CSS: background image


Quoted text here. Click to load it

When something doesn't work as you expected it to, validate:

Then look up how you should have done it properly:

|      weblog | http://www.pretletters.net/weblog/weblog.html |
|  webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |

Re: CSS: background image

With neither quill nor qualm, R.A.M. quothed:

Quoted text here. Click to load it

The correct line is:


Contrary to popular belief, it is believable.

Site Timeline