/    Sign up×
Community /Pin to ProfileBookmark

problem with H1 background in IE

Hey guys!
I have a question and couldn’t figure out the problem..

I have an H1, and need to attach to it an image. Not to hide the text from H1, but to show the logo padded at 500px from h1. In Firefox it is displayed, but in IE it is invisible. why?

Here is the html part:

[code=html]
<div id=”header”>
<h1>HILDA NEILY <span>online gallery</span></h1>
</div> <!– end of div: header –>
[/code]

and the css goes like this:

[CODE]
#header {
background: url(img/bg_top.jpg) no-repeat 0px 0px;}

#header h1 {
display: block;
font-family: “Times New Roman”, Georgia, Times, serif;
font-size: 26px;
color: #512708;
padding-top: 80px;
padding-left: 55px;
padding-bottom: 35px;
background: url(img/logo_hilda_neily.gif) no-repeat 500px 70px;}

#header h1 span {
font-family: “Times New Roman”, Georgia, Times, serif;
font-size: 15px;
color: #908D8D;
display: block;}
[/CODE]

any ideas? thx for ur time!

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJun 03.2007 — I tested your code in IE 6 & 7, works fine. Got an online example of a non-working page?
Copy linkTweet thisAlerts:
@ray326Jun 04.2007 — Missing doctype?
×

Success!

Help @byte_eater spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...