Topic: Picking Colors from overlaying stylesheet (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=25462" title="Pages that link to Topic: Picking Colors from overlaying stylesheet (Page 1 of 1)" rel="nofollow" >Topic: Picking Colors from overlaying stylesheet <span class="small">(Page 1 of 1)</span>\

 
Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

posted posted 04-08-2005 18:29

Is there any way to use the background colors of a TD tag class for instance (TD.beta) in a DIV directly copying that color from the other tag?

code:
TD.beta { background-color: #C9C79E; }
DIV.beta {background-color: "get background color from TD.beta class"}



Thanks,



- Biggie

- Face the Present
- AIM: MASKKKK

01001101011000010111001101101011011010110110101101101011

Nathus
Bipolar (III) Inmate

From: Minnesota
Insane since: Aug 2003

posted posted 04-08-2005 20:22

You could just use

code:
.beta { background-color: #C9C79E; }

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 04-08-2005 21:53

Yeah, no need to specify the element in the CSS.

Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

posted posted 04-09-2005 21:39

The people up stream that wrote the stylesheet weren't nice enough to make a tag like that. And if I add my own tag like that, then I'll have to write a new stylesheet for every theme that they use.

Thanks,



- Biggie

- Face the Present
- AIM: MASKKKK

01001101011000010111001101101011011010110110101101101011

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 04-09-2005 22:06
quote:
The people up stream that wrote the stylesheet weren't nice enough to make a tag like that. And if I add my own tag like that, then I'll have to write a new stylesheet for every theme that they use.



Huh? Tag like what? Oh, do you mean ".beta" class?

Another option would have been

td.beta, div.beta { background-color: #C9C79E; }

maybe that helps?


 

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 04-09-2005 23:55

First of all, *please* don't call it a tag - it's a style declaration, which is very very different from a tag.

Secondly - if the stylehseet is already in existence, and you're adding things to it, why do you need to have it grab the previous value....?

I would have a talk with the people "upstream"



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu