Showing posts with label css box model. Show all posts
Showing posts with label css box model. Show all posts

Saturday, 3 August 2013

CSS BOX MODEL USING BORDER, MARGIN & PADDING

Written By:-Avinash Malhotra
Our Website:- Tech Altum

CSS BOX MODEL

CSS Box Model is a box inside HTML Elements including Padding, Margin, & Border.

CSS Box Model

The Image Below Shows a basic box model:
Suppose we have a div as shown above containing an image,

Padding is used to give space inside, 
Border is used to give particular Border,
Margin is used to give space outside.