Solved

CSS font 13/22 what does that mean?

Posted on 2014-11-20
3
98 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
  • 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 1

Author Closing Comment

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

Expert Comment

by:Kyle Hamilton
ID: 40456164
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bootstrap 3 and Angular 2 12 55
Glitch when viewing from computer to mini-window(smartphone) 1 44
How do i set padding within the sidebar? 2 27
alert before form submission 6 32
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
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…

861 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now