Jump to content

What is the meant of ...


newceylon

Recommended Posts

That's the shorthand property for the font.I'm not exactly sure what 75%/170% is, but I think that would be font-size and line-height. If I'm right, the code would be equal to this:font-size: 75%;line-height: 170%;font-family: Arial,Helvetica,sans-serif;

Link to comment
Share on other sites

  • 2 weeks later...

Ingolme is right, the values 75%/170% described above are for the font-size and the line-height.This is the default font property values structure:

element {  font-style: normal;  font-variant:normal;  font-weight: normal;  font-size: inherit;  line-height: normal;  font-family: inherit;}

So, to put learn-happy's example in perspective: font: 75%/170% Arial, Helvetica, sans-serif;Is the same as:

element {  font-style: normal;  font-variant:normal;  font-weight: normal;  font-size: 75%;  line-height: 170%;  font-family: Arial, Helvetica, sans-serif;}

Here's a VERY useful link about using Shorthands in CSS: http://www.dustindiaz.com/css-shorthand/Bytes,

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...