Tuesday 20 March 2012

Summary of Document 2

And straight into second one:

CSS Line-Height

Line height can be specified in CSS like in Indesign. The default is around 1-1.2 in browsers. This can be overrided with a property (line-height: 100%; etc). It can be specified by different units such as normal, inherit, percentage, length-value, unit-less value.

They can also be used with the font-size in the following format - 12px/normal - the first being font size the second being line height. Line height is inherited by the parent property - so even if the descendants all have different font sizes, the line height is the same as the parent unless otherwise specified.

The exception to this is if the line height is specified by the "normal" unit value - which calculates the lineheight depending on the individual specifications of the font-sizes. However, this doesn't allow for much control. The "number value" entered is timesed by the individual font sizes for each child and calculated separately.

No comments:

Post a Comment