Home > DeveloperSection > Forums > margin property value in CSS
Madam Walker
Madam Walker

Total Post:22

Points:154
Posted on    June-14-2013 9:27 AM

 CSS-CSS3 CSS-CSS3 
Ratings:


 1 Reply(s)
 682  View(s)
Rate this:
Hi,

I have little bit confusion related to margin values. Can you tell me what is differences between following statement

margin:5px;
margin:5px 10px;
margin:2px 4px 6px;
margin:3px 6px 9px 12px;

Your help is a great appreciated. 



AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-15-2013 5:07 AM

HI Madam,

Margin Property value as following

margin:5px;
margin-top:5px;
margin-right:5px;
margin-bottom:5px;
margin-left:5px;

margin:5px 10px;
margin-top:5px;
margin-right:10px;
margin-bottom:5px;
margin-left:10px;

margin:2px 4px 6px;
margin-top:2px;
margin-right:4px;
margin-bottom:6px;
margin-left:4px;

margin:3px 6px 9px 12px;
margin-top:3px;
margin-right:6px;
margin-bottom:9px;
margin-left:12px;

Don't want to miss updates? Please click the below button!

Follow MindStick