13.07.2015 Views

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7: The Box ModelThe output in Figure 7-43c shows that the third paragraph stops growing vertically when the heightreaches 50 pixels. If only there were a property that could handle that overflowing text. Wait, there is!Stay tuned to the section on the overflow property <strong>for</strong> in<strong>for</strong>mation on how to control overflowingtext.Figure 7-43cThe next section wraps up discussion of dimensions with the line-height property.The line-height propertyAs I mentioned in Chapter 6, the line-height property refers to the height of the line on which eachline of text appears. The line-height property and its possible values are outlined in the followingtable.Propertyline-heightValuenormal | | | initial value: normalThis property allows an explicit length to be defined <strong>for</strong> each line of text. Consider the <strong>CSS</strong> inFigure 7-44a and the markup in Figure 7-44b.Figure 7-44a269

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!