Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   HTML / DHTML (http://siteownersforums.com/forumdisplay.php?f=7)
-   -   Set margin and Padding (http://siteownersforums.com/showthread.php?t=153922)

mark1 04-21-2015 04:59 AM

Set margin and Padding
 
how to set margin and padding in div

rizwan 04-22-2015 05:22 AM

margin will set your div position in page content and padding will give inside div space or inside text or other things of div.
i-e:
margin:top right bottom left;(margin:10px 10px 10px 10px;).
padding:top right bottom left;(padding:10px 10px 10px 10px;).

rodriguezjamie 04-22-2015 05:25 AM

Great blog! There is lots of good information, not only me but also everyone can understand it easily.
http://austinpoolcleaners.com

yasar 05-27-2015 06:42 AM

margin value Make a space between two div's
padding value make a space inside a div

Example :


testing content


in Css file

.example {margin:10px 10px 10px 10px}
.example span {padding : 10px 10px 10px 10px}


All times are GMT -7. The time now is 05:17 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.