Forums

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

Home Forums CSS why to write this below line in css and what is meaning of these line

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42306
    sumitweb
    Participant

    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;

    #122528
    chrisburton
    Participant

    100% = font-size

    1.4 = line height

    Verdana, Arial, Helvetica, sans-serif = pointess fallback fonts (Arial, Helvetica should do it)

    #122529
    Kitty Giraudel
    Participant

    The font property is the shorthand for font-size, line-height, font-weight, font-style and font-family.

    #122532
    sumitweb
    Participant

    thanks

    #122537
    chrisburton
    Participant

    @HugoGiraudel

    It actually goes like this:

    `font-style` `font-variant` `font-weight` `font-size/line-height` `font-family`

    #122539
    Andy Howells
    Participant

    Note that you don’t have to use the shorthand, I actually prefer doing it long hand, for example;


    .box {
    font-family: xxx;
    font-size: xxx;
    font-weight: xxx;
    }

    It’s perfectly valid this way and I find it easier to read and change.

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