26.01.2019 Views

XML Simplified

Create successful ePaper yourself

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

Module 5<br />

Style Sheets<br />

padding_width<br />

Concepts<br />

Composite value that can have maximum four values in the following order: top, right, bottom, and<br />

left. These values are followed by length unit designators. However, default is pixel unit.<br />

Figure 5.31 shows the code for style rules defined in Padding.css file.<br />

Figure 5.31: <strong>XML</strong> File<br />

Figure 5.32 depicts the style sheet for padding.css file.<br />

where,<br />

Manufacturer { padding: 2 }<br />

Figure 5.32: Padding.css File<br />

Inserts padding of 2 pixels between the four borders and text of Manufacturer element. The four<br />

borders applicable are top, right, bottom, and left.<br />

Model { padding: 2 5 }<br />

Inserts padding between the borders and text of Model element. The value 2 is applied to top and<br />

bottom borders and 5 is applied to left and right borders.<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!