Giving Internet Explorer what it needs
As a follow up to my previous post, an article was posted yesterday CSS tips and tricks, Part2 I read the first Part last week which has some good basics for beginers. This Part had an area titled Giving Internet Explorer what it needs and here are the techniques best recommended:
Child Selector Hack – To hide from IE
html>body p {declarations: here;}- Download this code: /code/ie_childselector.txt
Star HTML Hack – To hide from all browsers but IE
* html p {declarations: here;}- Download this code: /code/ie_starhtmlhack.txt
Comment Backslash Hack – To hide from IE Mac
/* \*/* html p {declarations: here;}/* */- Download this code: /code/ie_commentbackslash.txt
IE Expressions – To send CSS to IE Only
<!--[if IE]><link rel="stylesheet" type="text/css" href="ieonly.css" /><![endif]-->- Download this code: /code/ie_expression.txt
All having the uses, but for future updateability and ease of use when updating styles, it is a pain using hacks. So best avoid if you can!