corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » FAO: Webmasters: CSS


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author FAO: Webmasters: CSS
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
24th Oct 06 at 07:12   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 21st Feb 01
Location: Liverpool
User status: Offline
24th Oct 06 at 07:59   View Garage View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 08:18   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 21st Feb 01
Location: Liverpool
User status: Offline
24th Oct 06 at 08:38   View Garage View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 08:55   View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 08:56   View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 08:58   View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 09:45   View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 12:50   View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 13:03   View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 13:52   View User's Profile U2U Member Reply With Quote

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
24th Oct 06 at 13:57   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Oct 06 at 14:05   View Garage View User's Profile U2U Member Reply With Quote

cookies
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
24th Oct 06 at 14:39   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
24th Oct 06 at 14:57   View Garage View User's Profile U2U Member Reply With Quote

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]

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
FAO any1 Drew General Chat 11 1158
19th Apr 03 at 11:51
by 16vmarc
 
my first website iv made........ Icy General Chat 62 2261
12th Mar 05 at 13:00
by foxy lady
 
CSS webdesign help Houckham Geek Day 3 846
20th Apr 06 at 11:01
by Houckham
 
Making a PC DVD writer drive multi region? Sam Geek Day 2 1209
2nd May 06 at 00:34
by Jules
 
any web designers here??? KITcorsa Geek Day 7 1541
12th Jul 06 at 19:16
by Dom
 

Corsa Sport » Message Board » Off Day » Geek Day » FAO: Webmasters: CSS 28 database queries in 0.0143180 seconds