Jump to content

Background Image Troubles


washingtonirvine
 Share

Recommended Posts

Hi im building a page and i have all the text aligned and written out, but with my background images i have them all saved in my pictures in documents but they dont show up. i use the whole ".body{ background-image: url(c:user/tom/pictures/background.jpg); }" but then when i test the page it never shows up. none of my pictures to go under the text never show up. im unsure what im doing wrong to get my images on my site. iv read through the css lessons and found nothing that helps.im building my site through notepad and keeping it simple

Link to comment
Share on other sites

The .body selector will select any element that has class="body" as an attribute, you probably don't have any on your site (<div class="body">, <h1 class="body">, <body class="body">)Check how to style elements here: http://w3schools.com/css/css_syntax.aspTry using just body as a selector instead.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...