Changes

Jump to: navigation, search

CSS GUIDE MARGIN

36 bytes added, 13:07, 8 December 2006
Usage Examples
h1 {margin: 10px}
all four margins will be 10px
</pre><pre>
h1 {margin: 10px 2%}
top and bottom margin will be 10px, left and right margin will be 2% of the total width of the document.
</pre><pre>
h1 {margin: 10px 2% -10px}
top margin will be 10px, left and right margin will be 2% of the total width of the document, bottom margin will be -10px
</pre><pre>
h1 {margin: 10px 2% -10px auto}
top margin will be 10px, right margin will be 2% of the total width of the document, bottom margin will be -10px, left margin will be set by the browser
1
edit

Navigation menu