Solved

CSS font 13/22 what does that mean?

Posted on 2014-11-20
3
107 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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
How to show span when clicked on? 10 36
CSS Header Navigation Not Responsive 4 42
alert on input text 2 25
CSS in HTML 5 54
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

730 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