Inline conditional comments for IE?
von Moritur am 19. December 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<div class="itemDetails clear"><!--[if IE 7]> <style type="text/css"> .productItemMicro .itemDetails { padding-top:10px; padding-left:0px;} </style><![endif]--> <!--[if IE 8]> <style type="text/css"> .productItemMicro .itemDetails { padding-top:10px; padding-left:100px;} </style><![endif]--> <div class="productTitle"><a href="/zensierter/link/">Link</a></div> <div class="priceDetail" style="line-height: 1.3;"><span>Preis: <strong> 299 Euro</strong></span></div> </div> |
Really? If you do need these kind of hacks, please use an ie7.css file and include it in the head section…
Was meinst du dazu?