On 15 Mar 2007, at 14:26:40, Barney Carroll wrote:

Grant Novey wrote:
Using the @import stylesheet rule is great if you only want your stylesheet rules to be picked up by most modern browsers. Netscape 4 and below and IE 4 and below do not support the @import rule. This allows you to target stylesheets to specific browser versions.
Does that make sense?

This is the only practical advice I've seen on the topic.

A while back I read this article on the secret power of the rel property in links... The author went about listing examples of different objects you could link and different terms for what relevance they might have (hence rel values).

No, "rel" means the relationship of the linkee to the linker as implied by the act of linking. [1]

His enthusiasm was tangible, but he gave absolutely no indication of how this would improve any appreciable aspect of your page as far as user experience was concerned.

Am I just being cynical or is it really just a bit unnecessary?

You were maybe reading Paul Sowden's ALA article [2] about the capability, as specified in HTML 4.01 [3] (and thus XHTML 1.0) to specify persistent, preferred and alternate stylesheets using rel="stylesheet" and rel="alternate stylesheet" in conjunction with the title attribute.

Firefox supports this, and I would assume that Opera does too. IE, of course, doesn't.

For an example of its use, visit Jeremy Keith's <http://adactio.com> in Firefox, then look under the "View" menu; the "Page Style" submenu will allow you to choose the "high contrast" stylesheet which Jeremy has specified in his document using rel="alternate stylesheet". So, far from being "a bit unnecessary", it can be invaluable for a reader whose poor eyesight means they can benefit from seeing a large text, high contrast version of the site.

Of course, there's nothing to stop people from including such links when they have several skins for their site, and allowing the user to choose which one they want.


[1] <http://www.w3.org/TR/html401/struct/links.html#adef-rel>
[1] <http://www.alistapart.com/articles/alternate/>
[3] <http://www.w3.org/TR/html401/present/styles.html#h-14.3.1>

Cheers,

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]
*******************************************************************

Reply via email to