views:

21

answers:

3

Hello, I am a beginner in HTML and am taking a Multimedia class for school. I noticed for many websites such as ESPN, CNN, Google, etc. that there was no direct image source for the entire background. How might I be able to incorporate an image for an entire background of a website? Thanks I appreciate it!

A: 

Something like that?

With CSS:

body { background-image:url('myImage.gif'); }

Your question is not so clear though...

rabidmachine9
OH ok I see the problem, I was in HTML, not CSS. So where do I find the source file? I know in HTML if there is a image placed it will usually be followed by something like img src etc., and the image I want to use I usually copy the image location and paste, is this the same for this? Also I see in the CSS script the wordsbody { margin:0;Where do I implement from here? (Thanks Rabidmachine! youre a great help
audiosoup
Ok I would suggest starting reading some articles about css and html...I find this really usefull(css): http://www.sitepoint.com/books/cssant3/also some websites like that:http://www.w3schools.com/(good just to start...)I mean you seem to luck some basic knowledge here(I don't pretend to be guru but do some reading before posting questions because you seem to be in a real hurry.also never answer your own questions just comment or edit!the best of luck!
rabidmachine9
A: 

OH ok I see the problem, I was in HTML, not CSS. So where do I find the source file? I know in HTML if there is a image placed it will usually be followed by something like img src etc., and the image I want to use I usually copy the image location and paste, is this the same for this? Also I see in the CSS script the words

body { margin:0;

Where do I implement from here? (

Thanks Rabidmachine! youre a great help

audiosoup
A: 

Hi,

If you are trying to add the background image into your HTML, I would add it to the body div:

<body background="blue.jpg">

If you want to add it to your CSS or stylesheet, use this:

body {background: url(blue.jpg); }

Does that answer your question?

Libby