|
-
Jan 16th, 2006, 03:33 PM
#1
[RESOLVED] Multiple style sheets, 1 XHTML page?
Can you include more than 1 style sheet on 1 XHTML page?
-
Jan 16th, 2006, 04:28 PM
#2
Re: Multiple style sheets, 1 XHTML page?
Yes. Simply have more than one <link rel="stylesheet"> element. Or use the @import directive to import more CSS files from within one.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 16th, 2006, 05:02 PM
#3
Re: Multiple style sheets, 1 XHTML page?
Is there a prefered one? I'm thinking the @import directive might be the best so it cuts down on my HTML.
-
Jan 16th, 2006, 05:05 PM
#4
Re: Multiple style sheets, 1 XHTML page?
It doesn't really matter.
-tg
-
Jan 17th, 2006, 01:54 PM
#5
Re: [RESOLVED] Multiple style sheets, 1 XHTML page?
There is a slight difference, <link> tags enable you to create multiple stylesheets that the user can switch between (in browsers that support it), while @import directives cannot be overriden (except by turning styles completely off). So if you want to combine multiple stylesheets have one master stylesheet that you link to and use @import directives in that to include the other stylesheets. If you want to have alternative stylesheets then use the link tag.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|