Forums

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

Home Forums CSS Use of asterisk in CSS

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44247
    Dami
    Participant

    I have run into the following style:

    .btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { background-color: #bc6d30; *background-color: #e69656; }

    Notice toward the end there is an asterisk before the second notation of background-color and the color is different. Can anyone explain why the asterisk is there and what it does and why I would need it?

    Thanks.

    #132454
    Dami
    Participant

    Hmm, that’s interesting. There are several other styles with the asterisk beside an attribute in that style sheet. I believe the style sheet was made with SASS, could that have anything to do with it?

    #132455
    Paulie_D
    Member
    #132456
    Dami
    Participant

    Ah, that makes sense. Thank you. It did have me puzzled.

    I knew this was the place to come for answers!! ;)

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