About 53 results
Open links in new tab
  1. What is the difference between margin and padding in CSS?

    Feb 3, 2010 · 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. css - HTML Padding Style - Stack Overflow

    Jul 22, 2015 · This Stack Overflow page discusses how to use HTML padding style with CSS, providing insights and solutions for related queries.

  3. Why does base64 encoding require padding if the input length is …

    The padding characters communicate explicitly that those extra spots should be empty and rules out any ambiguity. Even if the length is unknown with padding you'll know where your data …

  4. Issues with padding, margin, and space utilities not working

    Feb 16, 2025 · In my first Tailwind project, the padding and margin utilities worked fine. However, in subsequent projects, these utilities stopped working as expected, and I had to use regular …

  5. css - Add padding to HTML text input field - Stack Overflow

    Add padding to HTML text input field Asked 14 years, 5 months ago Modified 2 years, 6 months ago Viewed 448k times

  6. Why does CSS not support negative padding? - Stack Overflow

    Another good use of negative padding would be making an element proportionally to its width filling with 100% padding, but allowing the element to grow vertically if more content overflows …

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

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

  8. Difference between a View's Padding and Margin - Stack Overflow

    Jan 6, 2011 · Padding is the space inside the border, between the border and the actual view's content. Note that padding goes completely around the content: there is padding on the top, …

  9. CSS, nested divs & margins vs. padding - Stack Overflow

    Dec 1, 2011 · 0 Vertical padding on the division - because if I decided I wanted a different amount of vertical space in between the multiple paragraphs I'd use bottom margins, and the …

  10. How to change a DIV padding without affecting the width/height

    I have a div that I want to specify a FIXED width and height for, and also a padding which can be changed without decreasing the original DIV width/height or increasing it, is there a CSS trick …