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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part II: PropertiesFigure 5-7a is combined with the markup in Figure 5-7b.Figure 5-7bFigure 5-7c shows the result of the preceding rule and markup.Figure 5-7cFigure 5-7 demonstrates the most common use of the text-indent property, with a normal lengthvalue, used to indent the text of the target element. The text-indent property can also accept a percentagewidth. This is demonstrated in the rule in Figure 5-8a.Figure 5-8a is combined with the markup from Figure 5-7b, to get the output you see in Figure 5-8b.The percentage width assigned by the text-indent property depends on the width of the element’sparent element. In this example, the parent element is the element. By default, the element’s width expands horizontally, filling the entire browser window.142

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

Saved successfully!

Ooh no, something went wrong!