what is the tag to insert a image using css?

I am looking for a snipit code for inserting a image to a Cascading Style Sheet, so what ever web page I link to the sheet, I could change all the images to the webpage all at the same time, I'm using Macromedia 8, DreamWeaver. Or a Website link would be perfect. Thanks.

Public Comments

  1. The way to do it is a little different then you think. It requires two separate pieces of code; the html and the css. In the css file create an id tag and make the background your image: #content { background-image: url(images/home.jpg); height: 350px; } Then your html to display: <div id="content"> <h1>Heading Text</h1> <p>Your content copy</p> </div> The two pieces together will give you your image and some text on top. Text isn't necessary. Whenever you want to add an image to your page just use a div and control the image with your css file. Hope that helps!
Powered by Yahoo! Answers