CSS hacks

CSS hacks

if we would like to specify the attributes(height,width,etc.) for the html elements to the target browsers like IE6,IE7,FF,etc..

sample code

div
{
height:25px //works in all browser
*height:50px //works in IE6 and IE7
-height:100px //works in IE6
}

Leave a Reply


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.