gc40 Posted February 3, 2008 Share Posted February 3, 2008 I am trying to make a website that has two CSS. When a client goes to the site, it would load style1.css, however, if the client decides he wants a different look, he can click to load style2.css which would load a different background and font color. How do I go about doing this to allow a client to select between two Style sheets or even two different classes? Link to comment https://forums.phpfreaks.com/topic/89191-use-different-css/ Share on other sites More sharing options...
alecks Posted February 3, 2008 Share Posted February 3, 2008 use sessions or cookies 1. start_session() on each page 2. if he goes to a url like ?style=1, set $_SESSION['style'] to 1 3. on each page check $_SESSION['style']; if it is 1, load style1.css, if it is 2, load style2.css Link to comment https://forums.phpfreaks.com/topic/89191-use-different-css/#findComment-456694 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.