Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Overriding CSS Header Style in Inline
Old 07-23-2009, 05:24 PM Overriding CSS Header Style in Inline
Novice Talker

Posts: 9
Trades: 0
I'm definitely not an experienced designer, so humble apologies for the inconvenience BUT I am having trouble overriding a header I created for a website. In the style-sheet it looks like this (basically for a header up top that goes semi-across the page). And I want to override the default "background" image for each page.

The CSS looks like this:


#header h2 {
float: right;
width: 530px;
height: 86px;
margin: 0;
background: url(img03.jpg) no-repeat;
padding: 84px 20px 0 0;
text-align: right;

And the html looks like this:

<div id="header">
<h1><a href="#"></a></h1>
</div>
<!-- end #header -->

I've tried a zillion things already -- changing the img src, using the !important tag -- so could someone explain how I do this, step-by-step, for a novice? Thanks a million.
march11 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-23-2009, 06:58 PM Re: Overriding CSS Header Style in Inline
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Just put

Code:
<style type="text/css">
#header h2 {
background: url(imagepath_for_page.jpg) no-repeat;
}
</style>
in every page that needs it
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Overriding CSS Header Style in Inline
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27275 seconds with 12 queries