Jump to content

IE6 troubles


GaVrA

Recommended Posts

So thnx to tera i know now how to limit some HTML only to a specific browser, and i did manage to strip down stuff that dont work on ie6 so it does not even try to show it on it(ie6). On all other browser that HTML works...

 

So pls check my site in ie6 and in firefox(or what ever ur using):

 

http://www.crtaci.info/

 

Its almost identical. There is no logo, becouse i didnt add any for ie6. I said almost, couse there is this little gap:

 

post-29-1220884474_thumb.png

 

post-29-1220884486_thumb.png

 

I am using this code for that background, i need it so it would stay fluid, aka to work on all resolutions:

 

<div>
<div id="logo1"></div>
<div id="logo2"></div>
<div id="logo3"></div>
</div>

 

#logo1{ 
background: transparent url(style_images/<#IMG_DIR#>/logo1.png);
float: left;
width: 600px;
	 height: 246px;
}

#logo2{ 
	 background: transparent url(style_images/<#IMG_DIR#>/logo2.png) repeat-x;
width: 100%px;
	 height: 246px;
	 margin-left: 600px;
	 margin-right: 118px;
}

#logo3{ 
	 background: transparent url(style_images/<#IMG_DIR#>/logo3.png);
float: right;
width: 118px;
	 height: 246px;
	 margin-top: -246px;
}

 

 

Thats my html and css for header and footer. Just different numbers and classes for footer... Anyone have any idea why ie6 is making this gap?

Link to comment
Share on other sites


This worked out like this:

 

#logo1ie{
background: transparent url(style_images/<#IMG_DIR#>/logo1.png);
float: left;
width: 600px;
height: 246px;
margin-right: -3px;
}

#logo2ie{
background: transparent url(style_images/<#IMG_DIR#>/logo2.png) repeat-x;
height: 246px;
margin-left: 597px;
margin-right: 118px;
}

 

Right margin of first div goes -3px, and left margin of 2nd div goes also -3px. :)

Link to comment
Share on other sites


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.