font:normal 22px/27px Arial, Helvetica, sans-serif;
Im working on someone else's CSS and ran across this..... why is there two numbers specified and what does that do?![]()
| SitePoint Sponsor |

font:normal 22px/27px Arial, Helvetica, sans-serif;
Im working on someone else's CSS and ran across this..... why is there two numbers specified and what does that do?![]()





The 27px is the line-height:27px; its the shorthand font declaration.font:normal 22px/27px Arial, Helvetica, sans-serif;
font-weight:normal;
font-size:22px;
line-height:27px;
font-family:Arial, Helvetica, sans-serif
The above = font:normal 22px/27px Arial, Helvetica, sans-serif;
The more you learn.... the more you learn there is more to learn.

IC perfect thanks
Sweet. I saw this shorthand for the first time yesterday and was wondering what it was also. Thanks for the info computerbarry! (and thanks plasma for asking the question ^^)
Bookmarks