What is Padding and Margin?
I know many of us (web developer newbies) are already using/editing Padding and Margin in our sites (especially Padding) but don't what really are those! ツ
When I make a research about this terms, I found this Site that answered my question clearly....
a big thanks to the author... ツ
In this post I will explain padding and margin and their purpose.
First I will explain the difference between the two.
Padding is like a inside spacing where margin is a outside spacing. Both work in the same way with about the same effect.
Now the values of them can be used differently.
You can have one of the several
in
px
em
pt
%
Now their are may ways to get the same effect with padding and margin
You can specify which side like this
padding-top:25px;
padding-bottom:25px;
padding-right:50px;
padding-left:50px;
Now you can also use padding in one line by doing something like this. All 3 of these below will give you the same effect as the code above.
padding: 25px 50px; ( 2 digit)
padding 25px 50px 25px 50px (4 digit)
padding 25px 50px 25px (3 digit)
With 2 digit padding or margin the first digit is top and bottom where the second is left and right.
With 4 digit padding or margin it works like a clock. top, right, bottom, and left.
With 3 digit it padding or margin the first digit is top, the second is left and right and the third is bottom.
SOURCE
Blog Archive
-
▼
2011
(232)
-
▼
December
(53)
- Add YM Status on your Blog
- The Method Put on SHARE THIS POST
- How To Fix Search Engine Template Working Correctly
- 5 Ways To Make Money From Blogger
- Tutorial Changes Blogspot Template
- Creative Art Template
- Revolution Theme Template
- Zinmag Remedy Template
- BIZMAX Template
- The Last84 Template
- Rebecca Black, Cone-ing and Gotye: 2011 in review ...
- How to add Pop Out Facebook Like Box in Blogger
- How to fix Error Code: bX-l4u1mh in blogger
- How to disable Facebook Timeline
- Remove Navigation Bar and Attribution in Blogger
- What we’ve learned while Getting 27,000 Aussie Bus...
- Error Code blogger bX-l4u1mh
- Make your Header, Blog Post, and Attribution Gadge...
- The Office of the Australian Information Commissioner
- Visual Basic 6.0 Tutorial free download
- What is BASIC?
- What is VB.Net?
- Experience the tsunami-affected areas of Japan thr...
- What is IDE?
- Connect to Google+
- Level Up! Christmas Poetry Writing Contest
- How to enable Facebook Timeline
- Gogle+
- What is Padding and Margin?
- Aligning and Positioning Widget/Gadget in Blogger
- Locate Widget/Gadget ID's in Blogger
- DOTA Warkeys Free Download
- Diablo 3 Characters Classes
- FLYFF v16 - Rise of the Muran 3rd jobs
- Exploring ancient ruins in 3D with Google Earth
- Using Visual Basic ADODC to connect with MS Acces...
- Kepler-22b, The New Planet - 600 light-years from ...
- “Wineweekplus” on Google+
- A Year of Curiosities: Australia’s Top Google Sear...
- Yahoo! New Image Search Feature with Facebook and ...
- Yahoo!'s Easter Egg
- Free Online Image Editor
- A fine day for a ride
- Got 100.00 karma in Plurk!
- What’s the secret behind "the quick brown fox jump...
- JFGI!
- FBML - Facebook Mark up Language
- Cannot Create Windows Folder Named Con
- Enable/disable a Task Manager
- How to put image in a USB flash drive and change t...
- The Cyberworld
- Google AdSense & Blogger: An introduction
- Androidland opens in Melbourne
-
▼
December
(53)