Leosquarez – Website Design and Development

Website Design and Development

ie6All the web developer will agree with me saying that Internet Explorer is always the difficult browser from all the designer with.

A good web designer should test anything before resided on web with all the most recent browser (firefox safari crome opera… ect..)
and of course he should check in Internet Explorer in all the version.

While the modern (and much better) browser like firefox, crome, safari try to let you install all the times the new version, and with new version means a version that improve but still respect the HTML and CSS reading.
IE is popular for complete different view of the page for a different version of the Browser

IE in the last few years release different version of the browser, most popular IE6, IE7 and IE8, but the are complete different each other in displaying a page.

The biggest different in the different version are stuff like:

  • margin and padding (especially in list like UL, OL  and DL)
  • Alignment
  • Position
  • Float

So is a good trick to create a separate CSS for IE6 and most of the times for IE7 as well

to do that you just create a now css file and in the <head> tag specify a condition:
<!–[if IE]>
According to the conditional comment this is Internet Explorer
<![endif]–>
<!–[if IE 6]>
According to the conditional comment this is Internet Explorer 6
<![endif]–>
<!–[if IE 6]>
According to the conditional comment this is Internet Explorer 6
<![endif]–>
<!–[if IE 7]>
According to the conditional comment this is Internet Explorer 7
<![endif]–>
<!–[if gte IE 5]>
According to the conditional comment this is Internet Explorer 5 and up
<![endif]–>
<!–[if lt IE 8]>
According to the conditional comment this is Internet Explorer lower than 8
<![endif]–>
<!–[if lte IE 5.5]>
According to the conditional comment this is Internet Explorer lower or equal to 5.5
<![endif]–>
<!–[if gt IE 6]>
According to the conditional comment this is Internet Explorer greater than 6
<![endif]–>

Some designer check for IE5, but i believe is to small the percent how still does have this browser.
But how think IE 6 is not so common any more just check these data:

http://www.w3schools.com/browsers/browsers_stats.asp

www.w3schools.com-screen-capture-2009-11-2-18-4-8

www.w3schools.com-screen-capture-2009-11-2-18-4-8

Popularity: 2% [?]

Posted by leosquarez On November - 2 - 2009 Condition EI6

9 Responses to “Browser CSS Condition IF IE”

  1. IE always try to be unique but it can not help us in website development. One day it won’t be with us if it does not improve itself.

  2. smith says:

    ie & mozilla browser

  3. Hi admin, Your site was tooooooooooooooo slow!!!! I suggest that you should change a better one, I search the web hosting reviews from google, hope that can help you! Best web hosting Reviews http://www.goo.gl/m6QA Whiche one was the best? Make your choice…

  4. leosquarez says:

    Mate i post you comment..
    even so you don’t get any page rank since any links in comment in wordpress have “no follow”

    Anyway thanks for your the feedback..

  5. viagra says:

    We’re a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You’ve done an impressive job and our entire community will be grateful to you. viagra

  6. Johnie Enlow says:

    This can be I technology that I could love a way to be capable a way to usage for myself. this’s simply a cut above the remainder along with I will’t wait till my supplier has this. Ones New insight i has what I needed. Thanks

  7. Please refer good friends who need help.

  8. I have to examine with you here, which isn’t one thing I usually do! I get pleasure from reading a blog that can make folks think. Also, thanks for permitting me to comment!

  9. That was clever. I’ll be stopping back.

Leave a Reply

Subscribe here

VIDEO

TAG CLOUD