CSS Attributes





Margins, Indents, and Text Alignment Attributes
Creating a good design includes setting margins and indents so the reader's eye is guided from one element to the next, and enough white space to give the reader a break in between thoughts.
margin left. To set a left margin, use a distance in points, inches, centimeters, or pixels, The following sets a left margin to three fourths of an inch: (margin left: .75 in}
margin right. For a right margin, select from the same measurement options as provided for the margin left attribute. {margin righ: 50px}
margin top. You set top margins using the same measurements values as for other margin attributes: {margin top: 20pt}
text indent. Again, points, inches, centimeters, or pixel values can be assigned to this attribute, which indents any type of text: {text indent: 0.5in) Internent Explorer also allows for negative margin and text indent values. This enables you to create interesting and unusual effects, including overlapping text and hanging indents (an "outdent") for a contemporary design.
text align. This long awaited feature enables you to justify text. Values include left, center, and right:{text align: right)
Margins and justification Controls
This task shows you how to control margins within a style sheet. Add the following margin syntax alongside the BODY attribute within the |