-
Emerald Star member
How to Save CSS/StyleSheet in Database ?
Hi,
Is there any way to store CSS settings and classes into a database. I have a css file describing styles for whole website.
I want to give user an option, to modify styles (background color, font, table header font, etc.) of thier own choices (at run-time). When user selects from the given options and hit save, then these values store in the database, so that when user visits the website next time then customized styles (theme) should be displayed on the web pages rather than default styles.
I know this can be done by using cookies (through javascript) but the problem arises when user visits the website after deleting private data of browser. In this way, again default styles applies to all web pages.
I am using javascript for dynamic changing of css files. Is there any way to get involved database in javascript to store css styles ?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules