Linked css (and if @import is maintained, a css link after the embedded
style) resolves certain flash of unstyled content IE6 bugs.
Regards,
Barney
Bob Schwartz wrote:
Rob,
I've been modularizing like this for years:
<link href="../../as/cs/com.css" rel="stylesheet" type="text/css"
media="screen">
<link href="../../as/cs/p7pmv0.css" rel="stylesheet" type="text/css"
media="screen">
<link href="../../as/cs/thickbox.css" rel="stylesheet" type="text/css"
media="screen">
Am I doing something wrong?
Is there an advantage to importing over linking, or a limit to the links
(ie. should only one be linked, the rest imported and if so, why?
Bob
I believe what you may have seen is the practice of
having <link type="text/css" rel="stylesheet" href="" media= "screen">
in the page body for xhtml validation purposes
having a raft of @import statements in the linked CSS file
The principle being to modularise your CSS, having multiple separate
CSS files
I don't think the real concern is for long since dead browsers such as
IE4 and NN4
--
Regards
- Rob
Raising web standards : http://ele.vation.co.uk <http://ele.vation.co.uk>
On 15/03/07, *Bob Schwartz* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Makes sense and I already knew that.
The reason behind my post has to do with me noticing a trend
towards importing style sheets and I was curious if this was the
current "best practice" and if so, why.
Bob
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?
On 3/15/07, *Bob Schwartz* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
What is the current "best practice" for style sheets -
imported or
linked - and why?
Bob
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe:
http://webstandardsgroup.org/join/unsubscribe.cfm
<http://webstandardsgroup.org/join/unsubscribe.cfm>
Help: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
<http://webstandardsgroup.org/join/unsubscribe.cfm>
Help: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
<http://webstandardsgroup.org/join/unsubscribe.cfm>
Help: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
--
Barney Carroll
Text Matters
Information design: we help explain things using
language | design | systems | process improvement
_______________________________________________________
phone +44 (0)118 918 2382 email [EMAIL PROTECTED]
web http://www.textmatters.com
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************