?
Solved

CSS font 13/22 what does that mean?

Posted on 2014-11-20
3
Medium Priority
?
125 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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