03-04-2004, 05:12 PM | #1 |
Aficionado
Posts: 391
Karma: 710
Join Date: Jul 2003
Location: Denver, CO, USA
Device: Nexus 7, Kindle Touch
|
Margin or padding?
Could someone please explain me the difference between margin and padding?
I already looked in the help file of the iSiloX, but it doesn't say anything about padding. I guess is too obvious. Thank you. (Embarassed in advance) |
03-05-2004, 05:24 AM | #2 | |
Uebermensch
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
Quote:
If your element has a background color that background color would fill the content area and the padding area. i.e. it would be inside the "element". So padding separates the content from the border, like the packing material in a box. Margin: If you want to space an element from it's preceding element then margin would be the correct thing to use as it does just that: creates a margin between one element and the next. So margin is on the very outside, on the edge if you like. If it helps to do it visually, think of an A4 page of type inside a picture frame. The margin is the space between the edge of the sheet of paper and the other elements (the parts of the frame). The padding is the space between the edge of the sheet and where the type starts on the page. The border would be the edge of the sheet of paper. Also see attached picture Tad |
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does Amazon go overboard with padding the number of titles it has | boswd | General Discussions | 8 | 06-27-2010 08:40 AM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 07:58 AM |
Trailing & Padding of Mobi Pocket files | DairyKnight | Kindle Formats | 1 | 09-21-2009 04:27 AM |
Margin sizes... | M0zza | Calibre | 2 | 09-22-2008 05:02 AM |
Right Margin Control | TedPark | Sony Reader Dev Corner | 4 | 07-02-2008 08:41 AM |