PDA

View Full Version : CSS and Database


ramek
03-21-2006, 07:12 PM
How can I save CSS styles for each user in a database? I am using ASP!

domedia
03-21-2006, 08:21 PM
I have no idea about db/asp.
But can't you just ad a field 'userstyle' and have a seperate table that consist of stylename and url to stylesheet?

dthomsen8
03-22-2006, 12:48 AM
How can I save CSS styles for each user in a database? I am using ASP!

You should give us a better description of what effect you seek to achieve.

Do you want various users who go to your site to see different styles?

ramek
03-22-2006, 05:19 PM
No, I want each user to be able to set a different style for thier webpage! Thx

domedia
03-22-2006, 05:33 PM
'their webpage'? what are you talking about? :)
dthomsen8 already asked if you could give some more information

dthomsen8
03-22-2006, 06:16 PM
No, I want each user to be able to set a different style for thier webpage! Thx

But users can already set their own styles. See "Style Sheets" in IE6 help, or the equivalent in other browsers.

ramek
03-23-2006, 09:07 PM
What I mean is that a User can create a profile, and each time he visit his profile it will always look the way he set it! And he have the option of change the look of the profile (BG color, font type) and saving the changes! ot change the settings in IE! If you do that it will change in all websites!

Jim_Shady
03-23-2006, 09:54 PM
I think what he's trying to say is that the site will personalise itseld depending on the person that logs in. So in order to do this he needs to store a CSS in a database next to that persons login details. I understand what it is he wants just not how to do it...!