Forums

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

Home Forums CSS shorthand font property do not override

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #157125
    sadunaresh
    Participant

    HI,

    `body{
    font: 0.85em/125% Verdana, sans-serif;
    color: #000;
    text-align: left;
    background-color:#FFF;
    }

    h1{
    font-size:1.3em;
    line-height:125%;
    }`

    body’s font is overridden and styles apply for h1

    but

    `body{
    font: 0.85em/125% Verdana, sans-serif;
    color: #000;
    text-align: left;
    background-color:#FFF;
    }

    h1{
    font: 1.3em/125% Verdana, sans-serif;
    }`

    body’s font is not overridden and font style do not apply for h1

    can anybody please help, this is css specificity problem or this is normal behavior…?

    #157129
    Paulie_D
    Member

    Do you have a link so we can see it not working?

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