Topic: Picking Colors from overlaying stylesheet Pages that link to <a href="https://ozoneasylum.com/backlink?for=25462" title="Pages that link to Topic: Picking Colors from overlaying stylesheet" rel="nofollow" >Topic: Picking Colors from overlaying stylesheet\

 
Author Thread
Maskkkk
Paranoid (IV) Inmate

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

IP logged posted posted 04-08-2005 18:29 Edit Quote

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

IP logged posted posted 04-08-2005 20:22 Edit Quote

You could just use

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

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 04-08-2005 21:53 Edit Quote

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

IP logged posted posted 04-09-2005 21:39 Edit 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.

Thanks,



- Biggie

- Face the Present
- AIM: MASKKKK

01001101011000010111001101101011011010110110101101101011

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 04-09-2005 22:06 Edit Quote
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

IP logged posted posted 04-09-2005 23:55 Edit Quote

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