M
Mark
Hi - in my current pages, I have:
<link href="styles.css" rel="stylesheet" type="text/css">
What I would like to do is:
<!--#include file="config.asp" -->
<!--#include file="styles.asp" -->
config.asp read values from a database, which are used to populate
colours within the styles.asp sheet - for example, styles.asp looks
like:
<style type="text/css">
<!--
a, a:visited { color: <%=acolour%> }
a:hover { colour: <%=ahovcolour%> }
body, td, p {font-size: <%=fontsize%>; color: <%=fontcol%> }
-->
</style>
So, depending on user settings, values read from config.asp will be used
to populate the style sheet which is included in-line, and not
referenced by a link.
Is this a practical way of achieveing different user specific settings
for the same pages?
Is there a reason one way or the other why I shouldn't do it this way?
Is there a better way of giving people a way to customize colours and
other styles for their account?
Thanks for any help.
Mark
<link href="styles.css" rel="stylesheet" type="text/css">
What I would like to do is:
<!--#include file="config.asp" -->
<!--#include file="styles.asp" -->
config.asp read values from a database, which are used to populate
colours within the styles.asp sheet - for example, styles.asp looks
like:
<style type="text/css">
<!--
a, a:visited { color: <%=acolour%> }
a:hover { colour: <%=ahovcolour%> }
body, td, p {font-size: <%=fontsize%>; color: <%=fontcol%> }
-->
</style>
So, depending on user settings, values read from config.asp will be used
to populate the style sheet which is included in-line, and not
referenced by a link.
Is this a practical way of achieveing different user specific settings
for the same pages?
Is there a reason one way or the other why I shouldn't do it this way?
Is there a better way of giving people a way to customize colours and
other styles for their account?
Thanks for any help.
Mark