Forums

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

Home Forums CSS ‘font:12px/30px’ not working

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41650
    _Hu
    Member

    [here is the demo](http://codepen.io/hudidit/full/eBxjr “here is my pen”) , what have I written wrong?

    #119266
    flocko
    Member

    if you are using the “font” property you have to include a font-size and a font-family or else the browser falls back to default values.

    font: 15px/30px ‘Verdana’;

    for example. as an alternative to the line-height in pixels you can use

    font: 15px/2 ‘Verdana’;

    2 (line-height) is a multiplicator of the font-size.

    #119279
    chrisburton
    Participant
    #119282
    _Hu
    Member

    Thank you guys! :)
    I think I need to pay more attention to syntax details.

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