dreamdayproject
04-30-2009, 02:56 AM
Hi!
I tried setting up my website with dreamweaver and came pretty far without knowing anything at all about html or css. But after having come across many problems in the design I was adviced to learn these and better understand how it all works...I was a little negative at first, but now it is seems pretty cool:)
I checked out some tutorials on line, reading w3school etc, and they have been great! But...
I already have a problem:
I created a css style sheet with different div id ( as in one of the tutorials)
for the body it looks like this:
#body {
width: 620px;
}
and in html the same part looks like this:
<div id="body"></div>
Now, the thing I wanted to do was to add a background image which only appears in this body field. Shall I add it in the css or html document?
I tried like this in the css one:
#body {
width: 620px;
background-image: url("collagebackgroundsmall3.jpg");
}
But it doesnt work, nothing happens on the html document...
Do you know what I am doing wrong??
This is probably a really silly question, but I really am a beginner:-)
Thank you for readin!
Lia
I tried setting up my website with dreamweaver and came pretty far without knowing anything at all about html or css. But after having come across many problems in the design I was adviced to learn these and better understand how it all works...I was a little negative at first, but now it is seems pretty cool:)
I checked out some tutorials on line, reading w3school etc, and they have been great! But...
I already have a problem:
I created a css style sheet with different div id ( as in one of the tutorials)
for the body it looks like this:
#body {
width: 620px;
}
and in html the same part looks like this:
<div id="body"></div>
Now, the thing I wanted to do was to add a background image which only appears in this body field. Shall I add it in the css or html document?
I tried like this in the css one:
#body {
width: 620px;
background-image: url("collagebackgroundsmall3.jpg");
}
But it doesnt work, nothing happens on the html document...
Do you know what I am doing wrong??
This is probably a really silly question, but I really am a beginner:-)
Thank you for readin!
Lia