- <p>Web designers sometimes use spacer images (usually 1x1 pixel, transparent GIFs) for better control over layout, for example in tables or to indent a paragraph. However, Cascading Style Sheets (CSS) allow sufficient control over layout to replace spacer images. The CSS properties for margins and padding can be used on their own or in combination to control the layout. The margin properties ('<code>margin-top</code>', '<code>margin-right</code>', '<code>margin-bottom</code>', '<code>margin-left</code>', and the shorthand '<code>margin</code>') can be used on any element that is displayed as a block; they add space at the outside of an element. The padding properties ('<code>padding-top</code>', '<code>padding-right</code>', '<code>padding-bottom</code>', '<code>padding-left</code>', and the shorthand '<code>padding</code>') can be used on any element; they add space inside the element.</p>
0 commit comments