HighDots Forums  

IE background issues

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss IE background issues in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GA
 
Posts: n/a

Default IE background issues - 12-03-2007 , 04:07 PM







I have this CSS:


body {
color: #333333;
margin: 0px;
padding: 0px;
z-index: 1;
}

#wrap {
width: 975px;
background: url('images/background.jpg')no-repeat top center;
color: #000000;
font: 13px Verdana, Helvetica, Sans-Serif;
margin: 0px;
padding: 0px;
text-align: left;
z-index: 3;
}



going like so:

<body>
<div id="wrap">

<Some content in here, including other divs and such.>

</div>

</body>

In Firefox, everything shows up just fine. In IE7 - the background,
which is a gradient, doesn't show.

Any ideas or help would be appreciated!

Thanks,

TW


Reply With Quote
  #2  
Old   
Ian Hobson
 
Posts: n/a

Default Re: IE background issues - 12-03-2007 , 04:44 PM







Quote:
In Firefox, everything shows up just fine. In IE7 - the background,
which is a gradient, doesn't show.

Any ideas or help would be appreciated!

IIRC there are situations where IE bases relative URLs on the wrong thing.

Test it with an absolute URL for the background.

Regards

Ian


Reply With Quote
  #3  
Old   
Bergamot
 
Posts: n/a

Default Re: IE background issues - 12-03-2007 , 06:05 PM



GA wrote:
Quote:
In Firefox, everything shows up just fine. In IE7 - the background,
which is a gradient, doesn't show.
Post a URL. Your code snippet does not tell us what we need to know,
besides the fact that we don't have the image in question.

--
Berg


Reply With Quote
  #4  
Old   
Nik Coughlin
 
Posts: n/a

Default Re: IE background issues - 12-03-2007 , 07:16 PM




"GA" <fang27 (AT) excite (DOT) com> wrote

Quote:
In Firefox, everything shows up just fine. In IE7 - the background,
which is a gradient, doesn't show.
Without you posting an example on the web for us to look it it's hard to
say. That said, could be related to hasLayout, things not showing up when
they should, and only in IE, generally has something to do with this bug.
Plenty more info on this if you search Google.

If it is hasLayout then putting this in your head this might fix it:

<!--[if lte IE7]>
<style type="text/css">
#wrap {
height: 1%;
}
</style>
<![endif]-->



Reply With Quote
  #5  
Old   
GA
 
Posts: n/a

Default Re: IE background issues - 12-03-2007 , 08:02 PM



On Mon, 03 Dec 2007 22:44:23 GMT, Ian Hobson <ian.hobson (AT) ntlworld (DOT) com>
wrote:

Quote:
In Firefox, everything shows up just fine. In IE7 - the background,
which is a gradient, doesn't show.

Any ideas or help would be appreciated!

IIRC there are situations where IE bases relative URLs on the wrong thing.

Test it with an absolute URL for the background.

Regards

Ian
Yeah, I read about that and tried it, but it did not work.

After playing around I found that if I separate the no-repeat into a
tag of its own, like so:

background-repeat: no-repeat;

Everything worked fine. Which is ridiculous.

-TW



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.