473,804 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How use multiple stylesheets

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.
Oct 20 '06 #1
8 1497
Just add 2 <LINKtags to your HTML, each pointing to the different
stylesheets.

"mscertifie d" <ru****@tigerli ly.comwrote in message
news:B8******** *************** ***********@mic rosoft.com...
>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.

Oct 20 '06 #2

"Scott M." <s-***@nospam.nosp amwrote in message
news:OL******** ******@TK2MSFTN GP02.phx.gbl...
Just add 2 <LINKtags to your HTML, each pointing to the different
stylesheets.

"mscertifie d" <ru****@tigerli ly.comwrote in message
news:B8******** *************** ***********@mic rosoft.com...
>>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.

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
Oct 20 '06 #3
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/2.../24/18930.aspx

"mscertifie d" <ru****@tigerli ly.comwrote in message
news:B8******** *************** ***********@mic rosoft.com...
>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.

Oct 21 '06 #4
Or, you could say that anyone doing web based development should learn HTML.
..NET HTML classes are not needed to solve this problem.
"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com wrote in message
news:uV******** ******@TK2MSFTN GP03.phx.gbl...
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/2.../24/18930.aspx

"mscertifie d" <ru****@tigerli ly.comwrote in message
news:B8******** *************** ***********@mic rosoft.com...
>>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.


Oct 21 '06 #5
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." <s-***@nospam.nosp amwrote in message
news:e2******** ******@TK2MSFTN GP05.phx.gbl...
Or, you could say that anyone doing web based development should learn
HTML. .NET HTML classes are not needed to solve this problem.
"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com wrote in message
news:uV******** ******@TK2MSFTN GP03.phx.gbl...
>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/2.../24/18930.aspx

"mscertified " <ru****@tigerli ly.comwrote in message
news:B8******* *************** ************@mi crosoft.com...
>>>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.



Oct 21 '06 #6

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com wrote in message
news:OP******** ******@TK2MSFTN GP02.phx.gbl...
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." <s-***@nospam.nosp amwrote in message
news:e2******** ******@TK2MSFTN GP05.phx.gbl...
>Or, you could say that anyone doing web based development should learn
HTML. .NET HTML classes are not needed to solve this problem.
"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com wrote in
message news:uV******** ******@TK2MSFTN GP03.phx.gbl...
>>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/2.../24/18930.aspx

"mscertifie d" <ru****@tigerli ly.comwrote in message
news:B8****** *************** *************@m icrosoft.com...
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
stylesheet s? I tried Help and as usual could find no mention of the
subject.




Oct 21 '06 #7
Scott M. wrote:
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

Oct 24 '06 #8
That too!
"Chris Dunaway" <du******@gmail .comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Scott M. wrote:
>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

Oct 24 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3793
by: steve | last post by:
I'm new to XML, so pardon the stupid question. I've looked thru several books with not luck. All I want to do is associate one xml file with multiple xsl stylesheets. For example, if the user clicks on Button A, I want to use xsl stylesheeet A to display the xml data in a browser. If he clicks button B, then I want to use stylesheet B. I would think that this would be a very common thing to do, but maybe i'm missing something big. ...
1
4149
by: Steve | last post by:
I'm sure this question has been asked before, but I couldn't seem to get the right combination of words to get a hit. I'm looking to do one of two things... 1) Take a list of items, and have them display in a table format, but without any predetermined number of columns. Meaning that somehow using CSS tell the browser to determine the amount of screen space available, and then adjust the list items into an appropriate number of...
14
2592
by: Jacqui or (maybe) Pete | last post by:
Having just answered a question about multiple linked stylesheets, I thought I'd have a look at browser support. There's a quick test page here: http://www.porjes.com/ms/ I wrote it according to my understanding of: http://www.w3.org/TR/html401/present/styles.html#h-14.3.2
4
5146
by: Carolyn Marenger | last post by:
Hey everyone, I am looking for your thoughts and opinions. Is it preferable to have one css file containing all the style information or break it up into multiple imported files for different types of formatting. For example, one file for page layout related items and another for text formattion? I have seen different combinations on different pages, and am wondering which people find is easier to maintain. Being from a coding...
5
10013
by: Don G | last post by:
Is it possible to link multiple stylesheets to a single web page? I have an overall stylesheet for my entire site, but there are a few pages with a minor differences. I originally had these as inline styles, but I would like to move them to external stylesheets, if possible. I did some Google searches, and I found links that seemed to suggest that multiple stylesheets could be linked to a single page, but didn't give the details as how...
3
2048
by: spolsky | last post by:
hi, it is possible to apply multiple styles as shown in the following example. <STYLE TYPE="text/css"><!-- BODY { background-color:salmon; } P { margin-left:20px; } .clsCode { font-family:"Comic Sans MS"; font-size:10pt; color:navy;}
0
1460
by: Kevin | last post by:
I would like to change the naming convention for my stylesheets so they include the version number of the release. Because the xml files that are created by the application may be read and created between multiple versions of the application (those that have the latest updates, and those that do not), there is a need to either use the latest xsl stylesheet, or use the previous xsl (generic version) stylesheet. Is there a way to use the...
0
1594
by: Kevin | last post by:
I would like to change the naming convention for my stylesheets so they include the version number of the release. Because the xml files that are created by the application may be read and created between multiple versions of the application (those that have the latest updates, and those that do not), there is a need to either use the latest xsl stylesheet, or use the previous xsl (generic version) stylesheet. Is there a way to use the...
1
1560
by: kevino | last post by:
I would like to change the naming convention for my stylesheets so they include the version number of the release. Because the xml files that are created by the application may be read and created between multiple versions of the application (those that have the latest updates, and those that do not), there is a need to either use the latest xsl stylesheet, or use the previous xsl (generic version) stylesheet. Is there a way to use the...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.