Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
is anyone able to explain something in lamon terms.
I have a local intranet.. which uses a particular CSS style sheet.
If im going to create another style sheet for different colors etc but how does that work? and what do i link to? the new style sheet etc?
|
Leighton
Member
Registered: 21st Feb 01
Location: Liverpool
User status: Offline
|
The easiest was would be to copy the CSS that you already have rename it and change the values to what you want.
Then on the pages that you want it to work on put :
<link rel="stylesheet" type="text/css" href="were it is /what it is called.css">
Then you are away
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
I gathered that....
so i have index.html which is currently using style.css
its all linked, and im happy with that.
but lets call my new sheet, style2.css
do i have to create a new index.html saying linking to style2.css?
|
Leighton
Member
Registered: 21st Feb 01
Location: Liverpool
User status: Offline
|
no just change it to say style2.css and it will get the info off that
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
if i change the main index file to be style2.css then style.css will not appear at the begining will it?
|
Planty02
Member
Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
|
As leighton says, just change that line of code to point to your new CSS file. It will be found in the <head> tags of the page near the start of hte file
|
Nismo
Member
Registered: 12th Sep 02
User status: Offline
|
just have one stylesheet to do all the changes and div the tags to do different things.
like style 1 to have a different tag to style 2.
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
So you list all the style sheets within one index.html and link to them?
i was thinking you only had one css sheet per header!
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
I think everyone else so far has read your post wrong..........you want to change between styles yes?
I haven't done it myself but if you see the source code of http://www.virtualplastic.net/ you will see how they have done it.
Hope that helps,
Andrew
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
wooo.. thanks APK. i will take a look.
yes, pretty much changing between styles etc.
I already have the website, and one css styleshet, but i want to play about with colors etc.
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
As I say, not done it myself and have no idea how the browser remembers the style set but not too difficult I guess....
|
Laney
Member
Registered: 6th May 03
Location: Leeds
User status: Offline
|
quote: Originally posted by aPk
As I say, not done it myself and have no idea how the browser remembers the style set but not too difficult I guess....
Cookies probably?
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
cookies
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
well I'd have thought cookies but looking at the code for the above site it didn't jump out that they were using any......suppose they must've been though.
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Must be client side somewhere - there's nothing being sent back.
That site is using the ALA Javascript file. Used it myself on some stuff a while back, its easy enough. Read this - http://www.alistapart.com/articles/alternate/
[Edited on 24-10-2006 by Ian]
|