Solved

CSS font 13/22 what does that mean?

Posted on 2014-11-20
3
116 Views
Last Modified: 2014-11-20
In CSS what does this mean?

font: normal 13px/22px 'Century Gothic', Arial, Helvetica, sans-serif;

For instance, I want to put the font family on a separate line (in a separate method). But if I just do this by itself it ignores it:

font: normal 13px/22px;

What is this doing? 13px on 22px leading? How do I do that without the font family?

thanks.
0
Comment
Question by:Starr Duskk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 40456125
that's shorthand. You can write each property separately like this:

.my-class{
   font-weight: normal;
   font-size:13px;
   line-height:22px;
   font-family: "wahetever";
}

Open in new window

0
 
LVL 2

Author Closing Comment

by:Starr Duskk
ID: 40456148
thanks!
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 40456164
:)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question