Dynamic CSS?

Discussion in 'HTML/CSS' started by sladmin, May 11, 2007.

  1. sladmin CSNM Reseller

    I know this may sound wierd but is there any way I can dynamically update a Cascading Style Sheet?

    Reason I'm asking is so I can allow users to login and change the complete look of a webpage.

    Can this be done or is there another way of doing this kind of thing?


    Thanks in advance,
  2. Mark Voss CSNM Customer

    Yep - there's no reason a stylesheet has to be a .css file or even a proper file at all.

    If you used an asp stylesheet, it could call a users style preferences from an updateable database.

    Code:
    <link rel="stylesheet" 
    href="styles.asp?userID=<%= rsUser("userID") %>" 
    type="text/css">
  3. sladmin CSNM Reseller

  4. Mark Voss CSNM Customer

    Yep, that's the sort of thing :smilie:

Share This Page