Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / September 2007



Tip: Looking for answers? Try searching our database.

Can .A{} = .B{}

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jl - 25 Sep 2007 19:59 GMT
Hello,

I would like to do something like this

.A { .... }
.B = .A
.C = .A
.D = .A

Does anyone know if something like this can be done? I do not want .B
to inherit from .A,
I want to actually set .B equal .A .
Thanks in advance.
Joe
Jeremy - 25 Sep 2007 20:03 GMT
> Hello,
>
[quoted text clipped - 10 lines]
> Thanks in advance.
> Joe

This is not part of CSS.  Why do you want to do this?

Instead, you could try something like this:

.A, .B, .C, .D {...}

which IS part of CSS and seems to accomplish the same thing.  Is there
some reason this won't suit your needs?

Jeremy
jl - 26 Sep 2007 22:06 GMT
I think this will work. .A, .B, .C aer already defined and used in
countless places throughout
the website. I want to create .D and set A,B,C to D so all the classes
are the same.
I'll give it a try but it looks good.
Thanks.
Joe

> This is not part of CSS.  Why do you want to do this?
>
[quoted text clipped - 8 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.