This is a discussion on "switching between style sheets" within the Web Page Design section. This forum, and the thread "switching between style sheets are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
switching between style sheets
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
switching between style sheets
Ok. The site has been constructed and was about to be launched but some interfering government type decided that the there wasn't enough in the way of accessability. So I make up four or five different css files that would change the text and the colour of the whole site.
I thought linking the css files would be straight forward. Not so. Javascript is a possiblitity but there is definatly no php allowed or drop down menus. If any one can point me in the right direction I would be very very greatfull. I just need four or five hyperlinks at the top of the page's that would change the css file and drop a cookie to keep the prefered style. No negative replies please thanks Last edited by cwjones; Jul 1st, 2007 at 13:18. Reason: Missed stuff out |
|
|
|
|||
|
Re: switching between style sheets
|
|
|||
|
Re: switching between style sheets
That looks just like the info I've been looking for the past 3 days. Thanks very much
|
|
|||
|
Re: switching between style sheets
just to add to my mission. I have also been asked to include hyperlinks that will change the text size.
I have used the styleswitcher to switch between background colors but having trouble keeping the back ground color when I change text size. Please view the problem here. http://www.cwjones.plus.com/htmpages/atest1.htm The top right. You can change the color of the site bit when you change the test size it seems to revert to the default color. Any ideas? |
|
|||
|
Re: switching between style sheets
What is happening is the original style sheet is been left on and an additional stylesheet loaded. So all your css stays the same and only the bits that are overridden by the new sheet are changed. HOwever when you load in a different alternate sheet the original style still apply but the additional sheet (eg, blue bg) is replaced by the new selection. This mean that you get the original styles with only the changes that the selected sheets makes, not the combination of selected stylesheets. So if you select blue bg then extra large text you won't get both of those things, just the last one you selected as the additional sheets are replacing each other rather than stacking/adding to one another. You follow me?
What you need is a switcher that adds stylesheets rrather than replacing them. But then there is the danger (if people try them all out a few times, for example) of having the same sheets applied dozens of time. This could cause problems. Not sure what the solution would be here. There must be one though. Anyone got any ideas? Pete. Last edited by pa007; Jul 4th, 2007 at 17:10. |
![]() |
| Tags |
| alternate, switch |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Style sheets | Oak | Web Page Design | 4 | Mar 3rd, 2008 16:49 |
| Problems with external style sheets | ronb | Web Page Design | 7 | May 16th, 2007 19:18 |
| CSS Style Sheets | ronb | Starting Out | 3 | May 10th, 2007 13:02 |
| ***Help Needed accessing external Style Sheets*** | shawn2000 | Flash & Multimedia Forum | 1 | Nov 15th, 2006 22:32 |
| change style sheets | screamer2k | Web Page Design | 5 | Aug 6th, 2004 11:19 |