CSS HACK

August 5, 2008

Css comment hack for all IE browser

Filed under: CSS Hack — Tags: , , , , , , , , , — admin0 @ 11:41 pm

Through html comment we can do css comment hack in All ie brower as per needed. . Here we have code mania for css hack for IE. it is w3c validate code also.

<!--[if IE]>
conditional for Internet Explorer
<![endif]–>

<!—[if IE 5]>
Conditional comment this is Internet Explorer 5
<![endif]–>

<!–[if IE 5.0]>
Conditional comment this is Internet Explorer 5.0
<![endif]–>

<!–[if IE 5.5]>
Conditional comment this is Internet Explorer 5.5
<![endif]–>

<!–[if IE 6]>
Conditional comment this is Internet Explorer 6
<![endif]–>

<!–[if IE 7]>
Conditional comment this is Internet Explorer 7
<![endif]–>

<!–[if gte IE 5]>
Conditional comment this is Internet Explorer 5 and up
<![endif]–>

<!–[if lt IE 6]>
Conditional comment this is Internet Explorer lower than 6
<![endif]–>

<!–[if lte IE 5.5]>
Conditional comment this is Internet Explorer lower or equal to 5.5
<![endif]–>

<!–[if gt IE 6]>
Conditional comment this is Internet Explorer greater than 6
<![endif]–>

July 17, 2008

Minimum height block for multi browser ( IE6, IE7 and FF)

Filed under: CSS Hack — Tags: , , , , , , , — admin0 @ 4:34 am

CSS code
.block{
display:block;
height:100% !important;
height:100px;
min-height:100px;
max-height:100%;
border:solid 1px green;
width:200px;
}

Powered by WordPress