jpkuelho Posted March 30, 2007 Share Posted March 30, 2007 just started this simple CSS , it just has 3 background images and one logo gif which is not showing on IE6 body { margin:auto; } a { border: 0;} #bg1 { float:left; background-image:url("images/bg/bg_01.jpg"); width:1024px; height:237px; } #bg2 { float:left; background-image:url("images/bg/bg_02.jpg"); width:1024px; height:237px; } #bg3 { float:left; background-image:url("images/bg/bg_03.jpg"); width:1024px; height:237px; } img.logo { float:left; z-index:1; position:absolute; left: 88px; top: 158px; } Link to comment Share on other sites More sharing options...
aspnetguy Posted March 30, 2007 Share Posted March 30, 2007 it is working in other browsers? Remove the quotes from the url() Link to comment Share on other sites More sharing options...
S@m Posted March 30, 2007 Share Posted March 30, 2007 put a position:relative; on your floats. IE has a peek-a-boo bug (I mean feature) that is pretty sweet. Link to comment Share on other sites More sharing options...
jlhaslip Posted March 30, 2007 Share Posted March 30, 2007 bug = "undocumented feature" Link to comment Share on other sites More sharing options...
aspnetguy Posted March 30, 2007 Share Posted March 30, 2007 bug = "undocumented feature"LOL That reminds me of a saying the C programmers had in college."My programs don't have bugs they just develop random features" Link to comment Share on other sites More sharing options...
jpkuelho Posted March 31, 2007 Author Share Posted March 31, 2007 Thanks guys :Dit worked now I just have to reposition it on IE I added an html>body hack(its a hack right?) but I think now my CSS won't be validated ;~~ Link to comment Share on other sites More sharing options...
croatiankid Posted March 31, 2007 Share Posted March 31, 2007 it will because it's valid css, just that ie6 (and maybe 7, not sure) ignore it. Link to comment Share on other sites More sharing options...
jpkuelho Posted April 1, 2007 Author Share Posted April 1, 2007 ok now the problem is that IE expands the height of the document so it creates a white space after the end of the backgroundI know the problem is with the logo image I just don't know what to do to fix it img.logo { position:relative; left: 88px; bottom:550px; width: 99px;} html>body img.logo { position:absolute; left: 88px; top: 158px; bottom:auto; width: 99px; height:230px; } the white space is the same height as the logo ¬¬' Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now