Quote:
quote:Originally posted by scisoft
I completely agree the IE sucks, but making pages not displaying properly in IE is a proffesional suiccide. Thus you will need to manipulate your stylesheets, hide something from IE, something else from Mozilla.
Also I would not bother with Netscape, the version 6 is quite buggy and 7 is too slow to load. Thus it is becomming really minor browser and is not used frequently. On the other hand, Mozilla and to lesser extend Opera are gaining popularity, therefore test your pages on these two.
|
Well I wan't suggesting that he didn't code his pages to work in IE, rather code for the standards primarily and then use hacks and whatnot to get pages to display properly in IE. NS 6 is a good browser, but its stellar compared to NS 4. NS 7 is much better.. and you're right, people that actually use NS in any flavor is a very low percentage, most former NS users have gone on to Mozilla. With respect to standards, generally speaking, writing mark-up for Mozilla is the best route as it has the best implementation of standards and is the most up-to-date. Once coded for Mozilla though the page doesn't have to be modified for Opera, Safari, Netscape (about 99% of the time anyway) since those browsers follow the standards very tightly. The only modifications have to be made for IE, and yes it is important to reach 80% - 90% of users, so coding for IE is important. IE 6 actually wasn't a bad browser in the beginning, but you have to remember that IE 6 is already a couple of years old.
Here is a project that I thought very interesting, it's called Internet Explorer 7:
http://dean.edwards.name/IE7/
This project is a compilation of hacks that use JavaScript and MS proprietary CSS to actually implement various non-supported features in IE. Very interesting.
Quote:
quote:Originally posted by stu9820
I also couldn't find anything on CSS 3 and min-height: 100%; is not working in NS 7.1.
|
min-height is a CSS 2 property. Are you invoking standards mode or quirks mode?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title> Test </title>
<style type='text/css'>
:root {
height: 100%;
}
body {
height: 100%;
}
div:empty {
height: 100%;
background-color: black;
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
According to the W3C specifications, the height property with a percentage value is determined by the containing block. So in this example I have used the :root pseudo-class (CSS3) to give the root element (the <html> tag) a height of 100%, this pseudo-class works in NS6+, Safari 1 and of course in Mozilla as well. Since percentage heights are based on the containing block I continue the chain and use the percentage height on the body element, now the <div> element has a height of 100%.
He does raise some valid points, but he's way off-base with respect to PHP, MySQL and Apache, these are actually very easy to install and quite well documented, can the UI's be more intuitive, perhaps, but I don't think ASP is any easier to get going on. The W3C website is *horrible*, but it is where all this stuff originates, so it'd still my first choice for information. The W3C specifications aren't intended to be documentation, they're instructions for how a browser vendor should implement this or that. IMHO, there really isn't a difference, they should make the specifications user-friendly. But then, there's always W3schools.com alistapart.com and others.
Things like CSS aren't the easiest to get going on, it takes a few years of solid experience. All too often though, people code to Internet Explorer only, use proprietary stuff that isn't possible on other browsers and generally ignore the standards all-together, which slows standards evolution and implementation and just all around sucks, not to mention prompts Microsoft to take stances like this:
http://msdn.microsoft.com/library/de...de03262001.asp
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::