Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS .selected

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #45516
    Bolivar00
    Member

    Hi all,

    can someone tell me when can i use .selected.
    can i use it with a ``? just with `

  • `?
#138619
Senff
Participant

Uh, you can give any element (including A) the class “selected”, yes. That what you mean?

#138621
Bolivar00
Member

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 ?

#138622
Bolivar00
Member

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);
}

#138623
Senff
Participant

Yes. Any element. A, span, li, body, div, etc. etc. etc.

#138626
Bolivar00
Member

does it work with multiple classes and elements, for instance: .swatch li span.selected doens’t work for me

#138627
rodolpheb
Participant

Hi there is no restriction to use .selected as a class like you did.

#138631
Senff
Participant

@Bolivar00: show us where you’re having problems, or explain the issue in more detail, that’s when we can help you best.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.