Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Header Image in CSS DW CS4

Status
Not open for further replies.

sharkchaser

Technical User
Mar 19, 2010
50
US
Is it correct to place header code for a header graphic in the css file or should it go into the html file.

I can easily make it work in the html file but I can't insert an image into a css file.

If in the css file - HOW!

PWSHeader.jpg is a 950 X 120px graphic.

Thanks.

Rick
 
Rick, I recommend walking through some of the Dreamweaver tutorials. There are many to be found online, both at Adobe and elsewhere.







Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
I use either method.
I place the header image in a div named Header about 90% of the time straight into the html.
The other 10% I may need to make the header a background image because something else may need to be on top of it. At that point the image is a background image set in the div using css. For example:

#Wrapper #Header {
height: 210px;
background-color: #171717;
background-image: url(images/warrenheader.png);
background-repeat: no-repeat;
}

Hope this helps....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top