navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Multiple style sheets

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Multiple style sheets
Page: [1]
 
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
Multiple style sheets - 6/21/2004 11:20:52   
I could have sworn I'd asked this before, but I couldn't find a post on it anywhere. On the site I'm working on right now, I'd like to be able to use 2 style sheets on each page. One would control layout, and the other color. The site is broken into several sections, each section having it's own color scheme. Is it possible for me to have 2 sheets, each referring to the same section, but with different directions?

Let me clarify: layout.css would have:

#layout {width: 758px; margin-left: auto; margin-right: auto; padding-top: 20px;}
#banner {width: 750px; padding-top: 15px; padding-right: 10px; margin-left: auto; margin-right: auto; text-align: right;}


and scheme1.css would have:

#layout {background-color: #fff; border:1px solid #006666;}
#banner {color:#fff; background: #006666;}


Does that make sense? I'd really like to be able to do it this way so that I only have to maintain the layout in one file.

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Multiple style sheets - 6/21/2004 12:13:46   
Yes you can have two style sheets. As long as you have them linked to come into your page you should be fine. I have seen several people do this while viewing their codes online.

Some people will use one style sheet to do layout and another to do something else. I guess it makes it easier for them to maintain the styles. Easier to locate things on them.

I can try to find them if you wish. Might take a bit though, I have tons of css stuff bookmarked.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Multiple style sheets - 6/21/2004 12:19:45   
Do you know if there's a certain order they have to be linked in, such as layout first, then colors? I tried playing with it last week, but couldn't seem to get it to work right.

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Multiple style sheets - 6/21/2004 13:10:21   
I would imagine that you would want your layout to load first.

I'm sure that if you did a search on multiple style sheets something might come up on how to do it. I might still have a search saved somewhere because I remember the post previously and did some searching on it.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Multiple style sheets - 6/21/2004 14:22:45   
OK, it's working now. I must've just been missing a semicolon or something last time I tried.

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Multiple style sheets - 6/21/2004 14:52:47   
OK, Happy to hear that its working! don't forget to validate!

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Multiple style sheets - 6/22/2004 11:37:29   
Another question. I noticed that my top level pages display just fine, but that some of the child pages (held in a different directory) are displaying smaller menu text than what I specified. Any ideas?

What the menu looks like

What it's supposed to look like


_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Multiple style sheets - 6/22/2004 13:27:56   
Hmm I see what you mean.

Do you have any styles different on the other pages? Check through your code on the pages and see if there is any differences.

Are the style sheets linked all the same?

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Multiple style sheets - 6/22/2004 14:09:49   
I couldn't see any differences anywhere, and I went over (and over and over...) the code several times. I finally copy and pasted everything from a different page into the offending one and it works fine now.

Apparently the CSS gremlins were at it again!

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Multiple style sheets - 6/22/2004 15:54:40   
quote:

Apparently the CSS gremlins were at it again!


It wasn't the screw up fairy this time? roflol, I totally love your descriptions of those little visitors that mess things up for us!

Any more problems, just holler!

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: Multiple style sheets - 6/22/2004 16:24:08   
:):):)

I'd much rather come up with little creatures to blame it all on than admit that I'm not perfect!

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Multiple style sheets - 6/22/2004 16:26:42   
LOL!

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to slbergh)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Multiple style sheets
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts