Open main menu

CDOT Wiki β

Changes

CSS GUIDE PADDING

44 bytes added, 03:02, 12 December 2006
Usage Examples
== Usage Examples ==
<pre>h1 {padding: 10px}the padding will be 10px on all four sides</pre>
<pre>h2 {padding: 10px 2%}top and bottom padding will be 10px, left and right padding will be 2% of the width of the closest element.</pre>
<pre>h3 {padding: 10px 2% 15px}top padding will be 10px, left and right padding will be 2% of the width of the closest element, bottom padding will be 15px.</pre>
<pre>h4 {padding: 10px 2% 15px 20px}top padding will be 10px, right padding will be 2% of the width of the closest element, bottom padding will be 15px, left padding will be 20px </pre>
== Notes ==
1
edit