[thelist] colour keywords in CSS?
Ken Kogler
thelist at lists.evolt.org
Wed Sep 11 21:01:01 2002
> I was wondering if there is any ways to define
> common colours accross a stylesheet.
Do you know any server-side scripting languages? ASP, PHP, ColdFusion,
etc?
If so, you can do something like this (this is ASP, since it's what I
know):
--- start css file ---
<%
response.contentType = "text/css"
bgColor = "#ffffff"
divBG = "#0000ff"
%>
body { background-color: <%= bgColor %>; }
#content { background-color: <%= divBG %>; }
--- / end css file ---
HTH!
--Ken