26.01.2019 Views

XML Simplified

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

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

Module 5<br />

Style Sheets<br />

The output is shown in figure 5.40.<br />

Concepts<br />

Figure 5.40: Output of Using Block<br />

Data in each element is displayed on a separate row in block of its own.<br />

5.3.14 Text Alignment and Indentation<br />

The display:block property renders the text of an element in a separate block. Inside this block,<br />

you can align and indent the text using the CSS properties text-align and text-indent properties<br />

respectively.<br />

Figure 5.41 shows the syntax for text alignment and indentation.<br />

Figure 5.41: Syntax<br />

where,<br />

text-align<br />

Property to align the text in a block.<br />

alignment_value<br />

Can be one of the following: left (default), right, center and justify.<br />

text-indent<br />

Property to indent the text in a block.<br />

Version 1.0 © Aptech Limited<br />

<strong>XML</strong> <strong>Simplified</strong>

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

Saved successfully!

Ooh no, something went wrong!