Forums

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

Home Forums CSS [Solved] Advanced :not() CSS

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #188116
    Anonymous
    Inactive

    Hi,

    I want to change everything on the webpage to Verdana and the size to 14 except for certain elements. Here is my CSS, it doesn’t seem to be working. What am I missing?

    *:not(.lnav_topItem > .expandCollapseLink):not(.readMsgBody > *) {font-family: Verdana !important; font-size: 14px !important;}

    Thanks.

    #188118
    derjan
    Participant

    Hi,

    if everything should be 14 px Verdana except of those two elements, I would do something like this, omitting the use of any pseudo-element:

    `
    * {
    font-family: Verdana;
    font-size: 14px;
    }

    .your-class-names {
    whatever styles you want
    }
    `

    Cheers.

    #188119
    Anonymous
    Inactive

    Ok, thank you. I’ll give it a try.

    #188120
    Paulie_D
    Member

    Indeed, using :not() that widely is not a good choice.

    #188121
    Anonymous
    Inactive

    Thanks derjan, it works :)

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