|
avi_m -> RE: How to include block of CSS code to insert inside { ... } of id#{ }? (5/17/2007 10:45:33)
|
yup, you got very "warm", jaybee. In fact, I am trying to implement a pure CSS method of keeping "alight" the navigation button coresponding to the current (sub)page on a site and making it work with DWTs. I have the #masthead thing inside an editable region in the header area, andfor each diff page attached to the DWT I simply change is to #about_the_site or #contact_us or whatever, and then the usual id thing in the <li> items in the vertical nav bar I have. The thing is, is this chunk of CSS code, color: #FFDDEB; text-decoration: none; /* 3-D - Non-pushed ... */ background-color: #FF468B; position: relative; top: 1px; left: 1px; border-color: #000 #aaa #aaa #000; is going to be used elsewhere so I wanted to keep it in one global location and here have a reference to it instead of the CSS code itself. At one other forum, it really threw all the experts, and it seems it cant be done, ie to express an ID selector in terms of a class. Hang on, can' I do something like: #masthead a class = "Pressed" ? tia - avi
|
|
|
|