Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the '/' symbol mean in CSS [duplicate]

Tags:

css

Possible Duplicate:
Size in CSS with slash

I just saw some CSS code like this. Can some please tell me what the '/' symbol means and if there are any best practices governing it's usage ?

font: 2px/3px;

Edit:

Here is the entire code block (to give context)

.funky {
  font: 2px/3px;
    font-family: fantasy;
    font-size: 30em;
    font-weight: bold; }
like image 453
Parag Avatar asked May 22 '12 12:05

Parag


People also ask

What does '>' mean in CSS?

The greater than sign (>) selector in CSS is used to select the element with a specific parent. It is called as element > element selector. It is also known as the child combinator selector which means that it selects only those elements which are direct children of a parent.

What does double semicolon mean in CSS?

It means pseudo element selector. It means the element to the right doesn't exist in the normal DOM, but can be selected. A pseudo-element is made of two colons (::) followed by the name of the pseudo-element. Source.

What is the use of symbol in CSS?

symbols() The symbols() CSS function lets you define counter styles inline, directly as the value of a property such as list-style . Unlike @counter-style , symbols() is anonymous (i.e., it can only be used once).

What is Asterix in CSS?

The asterisk (*) is known as the CSS universal selectors. It can be used to select any and all types of elements in an HTML page.


1 Answers

In that example it means font-size:2px,and line-height:3px. Although I am not sure if that works without the rest of the font rule.
http://www.impressivewebs.com/css-font-shorthand-property-cheat-sheet/

like image 142
Scott Simpson Avatar answered Nov 15 '22 00:11

Scott Simpson