Breck,
Yes, this should be perfectly doable, but realize that if your css is on a separate file, the web server will not execute any script on that file unless it has file extension .asp. Give an example of what you have tried, and we can try to help you make it work.
Jared
Jared - Thank you for you reply, I'm including the CSS info below & sections of other ASP code that relates to the issue.
Quick overview:
I have sites that allow users to set various options, fonts/sizes/colors, etc.
An ASP program - Get Global.asp reads from a d/b table & gets data to be "replaced" in HTML tags.
GetGlobal.asp code:
SQL = "SELECT * FROM GLOBALTABLE "
Set GLB = Server.CreateObject("ADODB.Recordset")
GLB.Open sql,conn
dFont = glb.fields("DefaultFont")
dSize = glb.fields("DefaultFontSize")
-------------------------------------------------------------------------------
Font tags in ASP code:
<font face=' " & dFont & " ' size=' " & dSize & " '>
-------------------------------------------------------------------------------
CSS code in Menu program:
/* defines the format of menu items when the mouse is not over them */
.menuitem_normal
{font: 7pt Arial, sans serif;
color: #5A9ECE;
background-color: #FFFFFF;
line-height: 110%
}
I want to be able to let the users set the font values using values derived from the d/b just like it works in the ASP code.
I know controlling page colors, etc. from a d/b sort of defeats the purpose of CSS, but I don't want to have to modify code to change the values. (Plus, I don't know how to code CSS, or I wouldn't be here in the first place.)
I inherited most of this code, including the Menu which uses the CSS, & I've retrofitted the font tag replacements throughout the application, this is the last place I need to make database-driven & then I won't have to do a thing to change layout colors, fonts, etc. in my package.
Thanks again for helping me with this . . . .Breck Cogdill