• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

broken in IE6

I have a site I'm putting together that works great in all browsers but breaks in IE6 and earlier.

Specifically I lose translucency in my png images (full transparency works with js) and I lose the forced min height of a div.  

You can see the site at http://69.89.31.152/~pmasyste/pacificatechnologies/

Is this fixable?  Or, how could I setup my css to adjust (and look better) in IE6?  If I could make the areas that should be translucent the same color as the body (but only for IE6 and earlier) that might work.   Then I only have to address keeping the div at a minimum height.

Also, once I load some of my transparent images, if I reload them they lose their transparency...  Any way to fix that?

All help is genuinely appreciated!


0
marglar
Asked:
marglar
  • 2
2 Solutions
 
B_DorseyCommented:
min-height, and png does not work in IE6, you can add another css sheet and in your html you hide it from the other browsers like.

<!--[if lt IE 6]>
<link href="my_IE6.css" rel="stylesheet" type="text/css">
<![endif]-->
0
 
marglarAuthor Commented:
would this make the new css in addition to the primary css or replace it completely?  

It would be cool if it were in addition to, then I could just replace the broken pieces with something that works...
0
 
B_DorseyCommented:
addition, I do it to fix min-height stuff, it just opens it if IE6 and applys the new updated css in addition to the original, as longas you put it after the original css in your HTML

0
 
Hube02Commented:
You can also fix the min height issue by doing the following in s single CSS file:

// the following will set height in IE6 (ie six interprets height as min height)
.class {
  height: 100px;
}

// now add the following to alter the min height for browsers that use it
// IE6 does not understand the child selector(>)
// PARENT is the classes imediate parent element

PARENT>.class {
  height: auto;
  min-height: 100px;
}

you can also use this method to specify different images for IE6 and other browsers specifying a .gif image for ie6 and a png with transparency for other browsers. That way the image will appear in IE6, it just won't look as good.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now