Forums
This topic is locked
Change the colour of dynamic text when ACTIVE or I
27 May 2008 11:19:20 John Doo posted:
Hi all,I am building an ASP website in Dreamweaver MX which connects to a Microsoft Access database.
In my database I have a table called CATEGORIES. There is a field for the STATUS of each category.
In my admin-categories page I am using a dynamic text field to display whether a category is 'Active' or 'Inactive'. this is working fine but I am trying to control the color the dynamic text that is displayed i.e. if a category is 'Active' it should be displayed in green and if a category is 'Inactive' it should be displayed in red.
I am not a coder/programmer so I feel I am limited to what I can achieve. I am thinking maybe my css file should I should have.....
.active {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #009933;
}
.inactive {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #CC0000;
I would be very grateful if someone could offer any help with this.
Many thanks.