| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 52519 | 2004-12-21 06:41:00 | Choosing between CSS stylesheets | wintertide (1306) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 306224 | 2004-12-21 06:41:00 | Hi all, I'm currently making a small website and I'm messing round with using multiple CSS stylesheets so that visitors can choose between the different styles that I make available. Only problem is, I can't find a way to set these up. I don't want to use Perl or PHP if possible... if I have to, I will use Javascript though. Using Dreamweaver MX 2004 if that helps. Anyone know how to do this? Thanks, Wintertide |
wintertide (1306) | ||
| 306225 | 2004-12-21 06:53:00 | For .css files, you just need Notepad. :) They're text files with very simple format. :nerd: Like this: #header { background-color: orange; border-bottom: 1px solid red; color: white; text-align: center; } |
TideMan (4279) | ||
| 306226 | 2004-12-21 07:02:00 | I've got the sheets all set up and working fine... its just that it won't let me set it up so I can choose between the sheets when the page is loaded in a browser... Wintertide |
wintertide (1306) | ||
| 306227 | 2004-12-21 07:13:00 | Sorry, I misunderstood you. According to my bible (Cascading Style Sheets by Eric Meyer, OReilly), you can use alternate stylesheets by specifying rel="alternate stylesheet" in the link commands, then Mozilla, Netscape and Opera will allow the user to choose which style in View/Use Style. But for IE, you need to use JavaScript. HTH |
TideMan (4279) | ||
| 306228 | 2004-12-21 07:17:00 | That's EXACTLY what i was looking for! Thanks a lot! I can always dig up the Javascript code for IE, but most of the people I know use Firefox anyways... ;) [stops banging head on desk] Wintertide |
wintertide (1306) | ||
| 306229 | 2004-12-21 09:04:00 | You can make a stylesheet switcher in php as well. | mejobloggs (264) | ||
| 306230 | 2004-12-26 02:32:00 | ImageF1 and ChatF1 lets you choose styles... thats so cool:) | JimboJones (1680) | ||
| 1 | |||||