About 20,700,000 results
Open links in new tab
  1. What is the difference between margin and padding in CSS?

    Nov 6, 2016 · The biggest difference between padding and margin is that vertical margins auto-collapse, and padding doesn't. Consider two elements one above the other each with padding …

  2. How to margin the body of the page (html)? - Stack Overflow

    Learn how to apply margins to the body of an HTML page using CSS for better layout and design.

  3. How to increase the distance between table columns in HTML?

    Jul 4, 2013 · Let's say I wanted to create a single-rowed table with 50 pixels in between each column, but 10 pixels padding on top and the bottom. How would I do this in …

  4. html - Padding a table row - Stack Overflow

    In the 30 September 2014 Editor's Draft of CSS basic box model, padding and border properties exist for all elements including table-row and table-column elements.

  5. How to make padding:auto work in CSS? - Stack Overflow

    Aug 31, 2013 · This Stack Overflow post explains why padding:auto is not valid in CSS and offers alternative solutions for dynamic padding adjustments.

  6. html - How to set only vertical padding? - Stack Overflow

    Sometimes I would like to set top and bottom padding explicitly on an element but leave left and right padding to the unchanged browser default. I know I can write .myElement { padding-top: …

  7. html - CSS: Control space between bullet and <li> - Stack Overflow

    Learn how to control the space between bullet points and list items using CSS with examples and solutions.

  8. html - CSS property to pad text inside of div - Stack Overflow

    Dec 7, 2015 · The CSS property you are looking for is padding. The problem with padding is that it adds to the width of the original element, so if you have a div with a width of 300px, and add …

  9. CSS padding is not working as expected in Outlook

    As a start you could try to affect all elements with * {margin: 0; padding: 0;} in your extrernal style sheet. I use to do this when debugging. Then set margin/padding locally on the individual …

  10. html - Set cellpadding and cellspacing in CSS? - Stack Overflow

    In an HTML table, the cellpadding and cellspacing can be set like this: &lt;table cellspacing="1" cellpadding="1"&gt; How can the same be accomplished using CSS?