How to write IE specific CSS to the same CSS file.

Sometimes we are facing issue with IE browsers, specially after introduce of CSS3 properties. In that case we need some IE specific css code to be written.
Generally what we are doing, we are writing one separate css file and including the file in header specially for IE like the following code.


Or we are writing some hack to the CSS codes like this.

* html #div { 
    height: 300px;
}

*+html #div { 
    height: 300px;
}
#div {
   _height: 300px;
}
#div {
   height/**/: 300px;
}

But if we will get one separate class name in the body tag specially for IE browser, then we can easily manage the IE specific CSS code to that single CSS file by taking the parent class as the body class. Which will executes only for IE browsers.
The following HTML code will help you to write a separate css class to body specially for IE browsers.



   

Keep Coding enjoy CSS !!!!

Comments

  1. It is actually a nice and useful piece of information. I am glad that you just shared this helpful
    information with us. Please stay us informed like this.
    Thank you for sharing.

  2. With havin so much written content do you ever run into any problems of plagorism
    or copyright infringement? My site has a lot of unique content I’ve either authored
    myself or outsourced but it looks like a lot of it is popping it up all over the web without my permission. Do you know any techniques to help stop content from being ripped off?
    I’d definitely appreciate it.

  3. I have read so many content concerning the blogger lovers but
    this paragraph is in fact a good piece of writing, keep it
    up.

  4. Hi there just wanted to give you a quick heads up.
    The words in your content seem to be running off
    the screen in Opera. I’m not sure if this is a formatting issue or something to
    do with browser compatibility but I figured I’d post to let you know.
    The design and style look great though! Hope you get
    the problem solved soon. Many thanks

  5. Very good website you have here but I was curious about if you knew
    of any message boards that cover the same topics discussed in this article?
    I’d really love to be a part of community where I can get opinions from other knowledgeable individuals that share the same interest.
    If you have any suggestions, please let me know. Thanks!

  6. Hi there Dear, are you genuinely visiting this web site daily, if so after that you will
    absolutely take nice experience.

  7. Thank you a lot for sharing this with all people you
    really realize what you are speaking about! Bookmarked.
    Please additionally talk over with my website =). We may have a link change arrangement among us

  8. Great site you’ve got here.. It’s difficult to find quality writing like yours these days.
    I honestly appreciate individuals like you! Take care!!

  9. I absolutely love your blog and find a lot of your post’s to be just what I’m looking for.
    Do you offer guest writers to write content in your case?
    I wouldn’t mind producing a post or elaborating
    on a lot of the subjects you write with regards to here.
    Again, awesome website!

  10. With havin so much content and articles do you ever run into any problems of plagorism or copyright violation? My site
    has a lot of completely unique content I’ve either created myself or outsourced but
    it looks like a lot of it is popping it up all over the internet without my authorization. Do you know any solutions
    to help protect against content from being stolen? I’d definitely appreciate
    it.

  11. I do not know whether it’s just me or if perhaps everyone else encountering problems with your website.
    It seems like some of the written text on your posts are running
    off the screen. Can somebody else please provide feedback and let me know
    if this is happening to them too? This could be a problem
    with my web browser because I’ve had this happen previously.

    Thanks

  12. I’m not that much of a internet reader to be honest
    but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back
    down the road. Cheers

  13. Hi there friends, how is everything, and what you wish for to say on the topic of this
    paragraph, in my view its genuinely awesome in support of me.

  14. Hey! I know this is kind of off topic but I was wondering which blog platform are you using
    for this website? I’m getting sick and tired of WordPress because I’ve had
    issues with hackers and I’m looking at options for
    another platform. I would be great if you could point me in the
    direction of a good platform.

  15. I know this if off topic but I’m looking into starting
    my own blog and was curious what all is required to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet savvy so I’m not 100%
    sure. Any tips or advice would be greatly appreciated. Kudos

  16. Heya! I’m at work browsing your blog from my new apple iphone!
    Just wanted to say I love reading your blog and look forward to all
    your posts! Carry on the fantastic work!

  17. I am extremely impressed with your writing skills and also with the layout on your weblog.
    Is this a paid theme or did you customize it yourself?
    Anyway keep up the excellent quality writing, it’s rare to see a great blog like this one these days.

  18. Hi there to every one, the contents present at this web site are
    in fact awesome for people experience, well, keep up the nice
    work fellows.

  19. Hello! Would you mind if I share your blog with my facebook
    group? There’s a lot of people that I think would really enjoy your content.
    Please let me know. Thanks

Leave a Comment