Grow your CSS skills. Land your dream job.

‘font:12px/30px’ not working

  • _Hu
    # December 28, 2012 at 9:54 pm

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

    # December 28, 2012 at 10:03 pm

    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.

    # December 29, 2012 at 12:07 am

    Yep, he’s correct. http://codepen.io/chrisburton/pen/pCozL

    _Hu
    # December 29, 2012 at 1:16 am

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".