Best website design Tips and References website . Search anything about website design Ideas in this website.
Margin Css. The content area is the portion inside the padding, border, and margin of an element (the box model).so, if an element has a specified width, the padding added to that element will be added to the total width of the element. This space allows you to easily separate different elements on a web page, outside of any borders.
Look at the following example: Margin is a shorthand property and accepts up to four values, shown here: Demo % specifies a top margin in percent of the width of the containing element:
Css Padding One more Important property of Cascading
If the margin property has four values: Add some margin, and you add some empty space around that element. Margin is creating space beyond the box model. The following are the css properties that are used to set margin separately for the respective sides.