On 25 Jan 2007, at 10:59:24, Jim Callender wrote:
Anyone have any up to date links/resources on using alternative
stylesheets,
for other browsers than IE.
Opera, netscape..
You should turn the problem around. It's easy to produce CSS that
works for Firefox, Opera and Safari (and other browsers that support
the standards). Then produce a separate stylesheet that fixes the
bugs in IE and include it using a conditional comment [1] that only
IE can understand.
Making stuff that works in IE first, and then trying to fix it to
work in other browsers, is a world of pain. Going the other way
around is usually pretty trivial, once you get the hang of it and
understand IE's bugs. For one large site with a complex layout I
completed recently, my IE6-specific stylesheet consisted almost
entirely of rules setting zoom: 1' to trigger the hasLayout
property [2],[3]. If support for the broken box model in IE5.x is a
concern, again, the additional rules included via a CC are usually
trivial.
Oh, and always use strict rendering mode: some people think using
quirks mode makes life easier but they're wrong - or rather, I
strongly disagree :-)
[1] http://msdn.microsoft.com/workshop/author/dhtml/overview/
ccomment_ovw.asp
[2] http://www.satzansatz.de/cssd/onhavinglayout.html
[3] http://msdn.microsoft.com/workshop/author/dhtml/reference/
properties/haslayout.asp
HTH,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***