Tuesday, September 18, 2012

Some IE CSS Tips for Transparency, min-max width and Conditional Comments

You can force IE to apply transparency to PNGs. In theory, PNG files do support varied levels of transparency; however, an Internet Explorer 6 bug prevents this from
working cross-browser.

1. #regular_logo
2. {
3. background:url('test.png'); width:150px; height:55px;
4. }
5. /* \ */
6. * html #regular_logo
7. {
8. background:none;
9. float:left;
10. width:150px;
png', sizingMethod='scale');
12. }
13. /* */

You can define min-width and max-width in IE. You can use Microsoft’s dynamic expressions to do that.

1. #container
2. {
3. min-width: 600px;
4. max-width: 1200px;
width:expression(document.body.clientWidth < 600? "600px" :
document.body.clientWidth > 1200? "1200px" : "auto");
6. }

You can use Conditional Comments for IE. The safest way of taking care of IE/Win is to use conditional comments. It feels more future-proof than CSS hacks – is to use
Microsoft’s proprietary conditional comments. You can use this to give IE/Win a separate stylesheet that contains all the rules that are needed to make it behave properly.

1. <!--[if IE]>
2. <link rel="stylesheet" type="text/css" href="ie.css" />
3. <![endif]-->


Jones Jebakumar said...

In the event that you are tense in your taekwondo class your body creates more adrenaline. This is your battle flight hormone. It is helpful on the off chance that you are in physical risk. Be that as it may, in class it just consumes your muscle vitality. Also, you are left depleted and tired. You kicks get moderate and substantial.

Strain additionally makes your muscles solid. Furthermore, firm muscles can't work appropriately. You move more like a robot than a man. Your methods can't stream legitimately. Your kicks get moderate and powerless. What's more, you're more inclined to wounds.For more details:itfofindia.com.

Post a Comment