Hello,
My learning curve is getting ever steeper!
I had designed a website with a doctype and. Then I decided I wanted a drop down menu but the page background image disappeared but the doctype to make the menu work meant the whole page messed up.
Starting from scratch, I am using the following doctype declaration and the menu works.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I can put the background image in the tag and it works but how would I put it into the CSS code which I currently have as following (but does not work):
body
{
background-image: url(C:\Documents and Settings\David\My Documents\WTC website\stripe.jpg);
}
Mod edit: code tags added to correct display of markup, please check the posting instructions above/below post box.
Well, first nobody can see
Well, first nobody can see your C: drive and second you don't use back slashes in a URL.
The location of the image
The location of the image isn't the issue.
scubadiver007 wrote:The
The location of the image isn't the issue.
Well, that's all I can comment on because that's all you've shown. I could guess that it has to do with the fact that you haven't cleared your floats but that's only a guess due to lack of meaningful information.
Apologies, I thought my post
Apologies, I thought my post was clear. Let me ask a far simpler question:
Does the 'background-image' css code work with only certain doctype declarations?
scubadiver007 wrote: Does the
Does the 'background-image' css code work with only certain doctype declarations?
The doctype merely switches the browser into standards mode. If the doctype is complete then the problem is most likely elsewhere. Can you show a link or at least all your code?
scubadiver007 wrote: Does the
Does the 'background-image' css code work with only certain doctype declarations?
No. Can you provide a link so we can better serve your needs?