CSS Margin |
||||||||
44 views
The left margin of an element. The left margin of an element is set using the margin-left property. <html>
Output.
This is example, there are two paragraphs. The first paragraph has no specified margin. The second paragraph has a left margin of 3 centimeters. The right margine of an element. The right margin of an element is set using the margin-right property. <html> Output.
This is example, there are two paragraphs. The first paragraph has no specified margin. The second paragraph has a right margin of 5 centimeters. The top margine of an element. The top margin of an element is set using the margin-top property. <html> Output.
This is example, there are two paragraphs. The first paragraph has no specified margin. The second paragraph has a top margin of 5 centimeters. The bottom margine of an element. The bottom margin of an element is set using the margin-bottom property. <html> Output.
This is example, there are two paragraphs. The first paragraph has no specified margin. The second paragraph has a bottom margin of 5 centimeters. |
| « Functions | void Function » |
| Posted on Saturday, June 14th, 2008 at 1:11 pm under CSS For Beginners | RSS 2.0 Feed | |