OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Advantages to breaking up style sheets?
This page's ID:
10990
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Suho1004: [quote]Perhaps I'm just being dense, though. I don't think I'm quite on the ball here.[/quote] Nope you are right ;) I can't find an example I was working on but you can do all the alternate stylesheets in one file if you generate it with PHP using something like: /css/alternate.php?style=default Then in the stylesheet use switch to go through the $style variable and set the variables to the appropriate settings and then echo/print these into your stylesheet (oh and you need to set the header so it thinks the file is CSS). You could use if/else if you had more complex differenes between sheets but that will work for just chaning colours/images, etc. I have an example somewhere so I'll try and dig it out or if you want me to explain further then I'll mock something up. ___________________ Emps FAQs: [url=http://faq.ozoneasylum.com/53/]Emperor[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »