Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I wish I knew about this site years ago. It would have saved me a lot of heartaches..."

Geography

Where in the world do Tek-Tips members come from?
sharkchaser (TechnicalUser)
11 Oct 10 20:41
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
traingamer (Programmer)
12 Oct 10 11:49
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

imeldesign (IS/IT--Management)
2 Nov 10 9:02
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....

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close