The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> div style and background-color
skiv71
post Jul 23 2007, 04:26 PM
Post #1





Group: Members
Posts: 2
Joined: 23-July 07
Member No.: 3,421



hi,

i'm using the div style etc to position some text, in a box precisely on the screen. i can do this ok, but i wonder, instead of specifying the actual color ........ [background-color: #0fffff; etc can i replace the #0ffff etc with a define variable which is define earlier on in the page.

the jist is, i want to change the background color dependant on the comparison of a statement, i.e. true or false or compare for integer based comparisons.

i'm doing the comparison stuff using javascript.

thanks

neil
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 23 2007, 05:01 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,734
Joined: 9-August 06
Member No.: 6



In JavaScript? Yes, why not.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 8th May 2024 - 06:00 AM