Explore the community Forums Lectora Lectora Questions & Answers CSS Pseudo classes – :active not working

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #282082 Score: 0
    Profile photo of jayseventwo
    jayseventwo
    Member
    beginner
    intermediate
    2 pts
    @jayseventwo

    Hi guys, i have created tabs using text boxes and styling them with CSS.

    The pseudo selector of :hover works fine when i place the mouse over the textbox/tab, but i cannot seem to get :active to work. I would like to have the currently selected tab highlighted.

    Anyone had these problem or know a solution?

    Thanks.

    #285845 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    352 pts
    @timk

    I usually solve this by just placing an image of the highlighted tab in the respective page or chapter and disinheriting the button.

    Tim

    #285846 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    339 pts
    @ssneg

    I think :active is for links and buttons. Textboxes are divs, so they won’t trigger it afaik.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.