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
Old 09-03-2006, 03:52 PM IE Background Issue
Junior Talker

Posts: 2
Name: SCOTT
Trades: 0
Hi All

Hoping someone will be able to help me out. I'm not too experienced with CSS and especially the differences between IE and FF etc.

I have the following site under dev: PlayLocal.co.uk , trouble is the header bg image will not show properly in IE. It only shows part of the image. Works fine in FF.

Here's my CSS for the header:

img { border: 0; }
ol, ul, dl { position: relative; }

#header {
position: relative;
padding: 1em 0 0 0;
margin: 0px;
background: url('header.gif') top right no-repeat;
}

#header img {
margin: 0 0.75em 0 1em;
float: left;

The PHP template calls the header here:

<div id="header">
<?php print $search_box ?>
<?php if ($logo) : ?>
<a href="<?php print url() ?>" title="Index Page"><img src="<?php print($logo) ?>" alt="Logo" /></a>
<?php endif; ?>
<?php if ($site_name) : ?>
<h1 id="site-name"><a href="<?php print url() ?>" title="Index Page"><?php print($site_name) ?></a></h1>
<?php endif;?>
<?php if ($site_slogan) : ?>
<span id="site-slogan"><?php print($site_slogan) ?></span>
<?php endif;?>
<br class="clear" />
<?php print $header ?>
</div>


Any help is appreciated.

Scott
P.S Have been searching and visiting the site for a while but have not been able to find the answer.

Last edited by aztec; 09-03-2006 at 03:55 PM..
aztec is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-03-2006, 04:15 PM Re: IE Background Issue
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Are you setting a height and width in the HTML on the images in the header ?

On your #header, give it a height equal to the height of the graphic you're using for the background:

#header{
height: 38px;
}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-03-2006, 04:58 PM Re: IE Background Issue
Junior Talker

Posts: 2
Name: SCOTT
Trades: 0
LadynRed,

Thanks so much, that's worked. I appreciate your help

All the best
Scott
aztec is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE Background Issue
 

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.24127 seconds with 12 queries