471,618 Members | 1,235 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

Can .A{} = .B{}

jl
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

Sep 25 '07 #1
2 1399
jl wrote:
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
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
Sep 25 '07 #2
jl
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?

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- Hide quoted text -

- Show quoted text -

Sep 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.