Forum Moderators: not2easy
I want some sort of placeholder in the CSS file so that when a user loads this page, the placeholder is replaced with the color user entered in database.
Can I do it?
However ,you can do this
<link rel="stylesheet" type="text/css" href="/yourscript.cgi">
or
<link rel="stylesheet" type="text/css" href="/yourscript.asp">
or most likely,
<link rel="stylesheet" type="text/css" href="/yourscript.php">
where "yourscript" opens the css file with the markers, reads the database, and swaps out the markers for the user values. If you use this method, be sure your script outputs a content-type:text/css header.
Alternatively you can output the entire page(es) including the CSS and swap the user's values from the database on the fly. This might be better if there are in-page elements that are user-specific, which is likely.