CSS: User-customisable Site #3
In the previous two tutorials of this series we've built up a web site that uses a CSS layout, carefully structuring the layout, colors and font sizing into stylesheets that can work independently of each other. In the first part of the tutorial we created our base XHTML document and a set of default stylesheets that made up the default look and feel of the web site.
Last time we created new stylesheets in order to be able to apply different stylesheets dependent on user preference. To test these stylesheets we had to change which stylesheet was attached in the code, so in this tutorial we will look at how we can develop a system to let the user change and set their stylesheet choices for the site directly from the browser.
I will be using a very simple ASP script in order to demonstrate how to create a script to change the stylesheets, however this would be equally easy to develop in any other language.
Read More