On Thu, 26 Jun 2008 21:16:49 GMT
DenverD <spam.trap@Texan.dk> wrote:
>and guess what: take a peek at the html for the sites front page…it
>has special style sheets for three situations:
>
>if IE
>if gte IE 7
>if lte IE 6
>
>but nothing for Firefox, Safari, Konqueror etc etc etc…typical of a
>site designed to try to make IE look like a champ.
>
Almost all browsers, except IE, follow W3C standards. I start by
developing a page with the CSS that I want and making it look right.
Then I tweak the CSS, along with the HTML, to make it appear consistent
across Firefox, SeaMonkey, Epiphany, Konqueror and Opera (no Macs, so
can’t test directly on Safari, but I have a friend that checks it on
her computer). Once that is finished, I have to add in all the
exceptions for IE and its many incarnations.
Look closer at that web page source, and you’ll see there are four
stylesheets that do not need IF statements, because they work on all
browsers including IE:
<link rel=“stylesheet”
<link rel=“stylesheet”
<link rel=“stylesheet”
<link rel=“stylesheet”
<!–[if IE]><link rel=“stylesheet”
<!–[if gte IE 7]><link rel=“stylesheet”
<!–[if lte IE 6]><link rel=“stylesheet”
I’m fairly certain the three special cases (all for the ‘screen,
presentation’ style sheets but not for ‘print’) are to compensate for
IE’s obtuse refusal to follow standards . . .
–
Kevin Nathan (Arizona, USA)
Linux is not a destination, it’s a journey – enjoy the trip!
Linux 2.6.22.18-0.2-default
2:57pm up 3 days 17:14, 21 users, load average: 2.01, 1.86, 1.99