- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi all,
can someone tell me when can i use .selected.
can i use it with a ``? just with `
Uh, you can give any element (including A) the class “selected”, yes. That what you mean?
i’m sorry it did not show as i intended it to show, my question is can i use it with a span tag, or a li tag ?
can i do something like this:
.swatch li.selected {
border:#000 1px solid !important;
-webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.25);
-moz-box-shadow:0px 1px 2px rgba(0,0,0,0.25);
box-shadow:0px 1px 2px rgba(0,0,0,0.25);
}
Yes. Any element. A, span, li, body, div, etc. etc. etc.
does it work with multiple classes and elements, for instance: .swatch li span.selected doens’t work for me
Hi there is no restriction to use .selected as a class like you did.
@Bolivar00: show us where you’re having problems, or explain the issue in more detail, that’s when we can help you best.