there is a way to do this i just cant remember how
something like :
.kkk {
[class='anotherclass']
}Well, not sure what you're trying to accomplish, but you can define 2 classes to have the same attributes, then notate the differences as:
.anotherclass, .kkk {
/* define attributes that are the same */
}
.kkk {
/* define attributes that are different for class kkk */
}
Alternatively, you can assign two classes (not two IDs) to an element:
<div class="anotherclass kkk">NOPE !! not what i mean...
to clear my intention :
.example { font-size: 20px; }
#someid[img="ganjah"] { class="example" }No, I've never seen anything quite like that. Can you explain what functionality you are trying to accomplish with it?What he's doing is selecting by attribute so #someid[img="ganjah"] { class="example" } means when #someid has an img equal to ganjah then class=example. I'm not sure, though that you can change classes but I just don't recall.
something like :
.kkk {
[class='anotherclass']
}Well, not sure what you're trying to accomplish, but you can define 2 classes to have the same attributes, then notate the differences as:
.anotherclass, .kkk {
/* define attributes that are the same */
}
.kkk {
/* define attributes that are different for class kkk */
}
Alternatively, you can assign two classes (not two IDs) to an element:
<div class="anotherclass kkk">NOPE !! not what i mean...
to clear my intention :
.example { font-size: 20px; }
#someid[img="ganjah"] { class="example" }No, I've never seen anything quite like that. Can you explain what functionality you are trying to accomplish with it?What he's doing is selecting by attribute so #someid[img="ganjah"] { class="example" } means when #someid has an img equal to ganjah then class=example. I'm not sure, though that you can change classes but I just don't recall.