How use multiple stylesheets

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two stylesheet files, one is a standard file and one a custon file.
They have no classnames in common. How do I specify that my page use both
stylesheets? I tried Help and as usual could find no mention of the subject.
 
Scott M. said:
Just add 2 <LINK> tags to your HTML, each pointing to the different
stylesheets.

Another route, is that if all pages that reference one stylesheet also
should reference the other stylesheet, I would use the CSS @import command
inside one of the stylesheets to import the other stylesheet.

That way, only 1 LINK element is required in each page.

HTH,
Mythran
 
W3C documentation explains everything that needs to be learned about the
context of the question asked by the OP..


My short list gleaned from after studying W3C documentation:

** linking allows greater control of the cascading model
** linking allows greater control of specificity
** linking improves readability.
** linking is extensible using ASP.NET 2.0 classes

The OP needs to learn the 2.0 HeadElement, HtmlHead, HtmlLink classes.
Ryan Farley shows how [1].

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

[1] http://ryanfarley.com/blog/archive/2006/03/24/18930.aspx
 
Or, you could say that anyone doing web based development should learn HTML.
..NET HTML classes are not needed to solve this problem.


clintonG said:
W3C documentation explains everything that needs to be learned about the
context of the question asked by the OP..


My short list gleaned from after studying W3C documentation:

** linking allows greater control of the cascading model
** linking allows greater control of specificity
** linking improves readability.
** linking is extensible using ASP.NET 2.0 classes

The OP needs to learn the 2.0 HeadElement, HtmlHead, HtmlLink classes.
Ryan Farley shows how [1].

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

[1] http://ryanfarley.com/blog/archive/2006/03/24/18930.aspx



mscertified said:
I have two stylesheet files, one is a standard file and one a custon file.
They have no classnames in common. How do I specify that my page use both
stylesheets? I tried Help and as usual could find no mention of the
subject.
 
Only if the OP or anybody else would want static instances of the
declarations for linked script files but your point about learning HTML
isn't such a bad idea and I wonder why I never thought of that ;-)

<%= Clinton



Scott M. said:
Or, you could say that anyone doing web based development should learn
HTML. .NET HTML classes are not needed to solve this problem.


clintonG said:
W3C documentation explains everything that needs to be learned about the
context of the question asked by the OP..


My short list gleaned from after studying W3C documentation:

** linking allows greater control of the cascading model
** linking allows greater control of specificity
** linking improves readability.
** linking is extensible using ASP.NET 2.0 classes

The OP needs to learn the 2.0 HeadElement, HtmlHead, HtmlLink classes.
Ryan Farley shows how [1].

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

[1] http://ryanfarley.com/blog/archive/2006/03/24/18930.aspx



mscertified said:
I have two stylesheet files, one is a standard file and one a custon
file.
They have no classnames in common. How do I specify that my page use
both
stylesheets? I tried Help and as usual could find no mention of the
subject.
 
clintonG said:
Only if the OP or anybody else would want static instances of the
declarations for linked script files

IMHO this is the most common implementation for CSS Stylesheets. Let's not
use a sledgehammer where a rubber mallot will do.
but your point about learning HTML isn't such a bad idea and I wonder why
I never thought of that ;-)

<%= Clinton



Scott M. said:
Or, you could say that anyone doing web based development should learn
HTML. .NET HTML classes are not needed to solve this problem.


clintonG said:
W3C documentation explains everything that needs to be learned about the
context of the question asked by the OP..


My short list gleaned from after studying W3C documentation:

** linking allows greater control of the cascading model
** linking allows greater control of specificity
** linking improves readability.
** linking is extensible using ASP.NET 2.0 classes

The OP needs to learn the 2.0 HeadElement, HtmlHead, HtmlLink classes.
Ryan Farley shows how [1].

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

[1] http://ryanfarley.com/blog/archive/2006/03/24/18930.aspx



I have two stylesheet files, one is a standard file and one a custon
file.
They have no classnames in common. How do I specify that my page use
both
stylesheets? I tried Help and as usual could find no mention of the
subject.
 
Scott said:
Let's not use a sledgehammer where a rubber mallot will do.

And let's not use a rubber mallot where a rubber *mallet* will do! :)
(Sorry, couldn't resist!)

Cheers,

Chris
 
Back
Top