Forums

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

Home Forums CSS using * selector for font-family declaration

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43028
    keeganl
    Member

    Was wondering why you never see font-family declaration under the * selector. Is there a reason to not do this?

    thanks

    #126383
    Paulie_D
    Member

    It’s just not necessary.

    By using [*] it’s applying the font property to every element (images etc) even though it might not need it.

    Attaching it to the [body] element sets it for all **text** on the page body.

    I’m not entirely sure but also I think using [*] is more specific than sub-elements of the body and so might override other settings.

    #126385
    keeganl
    Member

    thanks Paulie

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