newceylon Posted June 9, 2008 Share Posted June 9, 2008 What would be the meant of this.? (underlined below)body { background: #42afdc url(images/html-bg.gif) repeat-x; font: 75%/170% Arial, Helvetica, sans-serif; padding: 0px; margin: 0px; color: #333333;} Link to comment Share on other sites More sharing options...
Ingolme Posted June 9, 2008 Share Posted June 9, 2008 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 More sharing options...
newceylon Posted June 9, 2008 Author Share Posted June 9, 2008 I have found many newest things on this style: http://sri.890m.com/wp-content/themes/i3th...er-12/style.cssI edited it but not apperant changes . Link to comment Share on other sites More sharing options...
rzea Posted June 19, 2008 Share Posted June 19, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.