Possible Duplicate:
What does this CSS font shorthand syntax mean?
Recently while checking apple’s website’s styling, I came across this CSS rule declaration which I could not understand:
body {
font: 12px/18px "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
}
I could not understand, and thus wanted to know that how does the forward slash in font: 12px/18px actually work?
It simply means
font-sizeandline-heightThat’s a short-hand notation…There are many more in CSS which you can use, for example
Can be simply written as
Or say for example this
Can be written as
Here’s a cool list of CSS shorthand.