10.07.2017 Views

246996016-HTML5-Step-by-Step

Create successful ePaper yourself

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

Key Points 139<br />

Key Points<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

You can indent the first line of paragraphs using the text-indent attribute.<br />

The Padding attribute sets the amount of space between an element and its<br />

border; the margin attribute sets the amount of space around the outside of an<br />

element.<br />

The Border-style attribute places a border around a paragraph. To specify the<br />

appearance of the border, use one of the following arguments: solid, dotted, dashed,<br />

double, groove, ridge, inset, outset, or none.<br />

To set the width of a border, use the border-width attribute followed <strong>by</strong> the width in<br />

pixels (px).<br />

To set the color of a border, use the border-color attribute followed <strong>by</strong> the color<br />

name or the RGB or hexadecimal notation for the color.<br />

To format each side of a border individually, specify four arguments, in clockwise<br />

order from the top: top, right, bottom, left. For example, border-style: solid none solid<br />

bottom.<br />

To specify the style, color, and size of a border in a single command, use the border<br />

attribute and specify the arguments in this order: size, color, style. For example,<br />

border: 2px green dotted.<br />

To set paragraph alignment, use the text-align attribute with one of these arguments:<br />

left, center, right, or justify.<br />

To set the line height, use the line-height attribute followed <strong>by</strong> the height expressed<br />

in pixels or as a percentage of the font height.

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

Saved successfully!

Ooh no, something went wrong!