About 10,400,000 results
Open links in new tab
  1. CSS Padding - W3Schools

    CSS Padding The CSS padding properties are used to generate space around an element's content, inside of any defined borders. With CSS, you have full control over the padding. …

  2. How to apply padding to every line in multi-line text?

    How can I apply the left and right padding to the middle lines? font-weight: 800; font-size: 5em; line-height: 1.35em; margin-bottom: 40px; color: #fff; background-color: rgba(0, 0, 0, 0.5); …

  3. html - How to add padding (left & right) to each lines in CSS2 …

    Dec 6, 2011 · I want to add padding - to the left and to the right - each lines. So, the words consectetur and do must have left padding, and the words amet, sed (and the dot) must have …

  4. CSS text align right while still maintaining equal padding left and right

    Sep 12, 2014 · I think you could achieve that by using the combination of text-align: justify and text-align-last: right;. However since the browser support of text-align-last property is not that …

  5. Multi-Line Padded Text - CSS-Tricks

    Nov 12, 2013 · The big trick here is using white-space: pre-wrap; That gives us the padding on the ragged-right lines. Then to get the padding along the left, a pseudo element is added along …

  6. How To Adjust the Content, Padding, Border, and Margins of an …

    Oct 13, 2020 · You can change the size of the padding by adjusting the padding value size. You can also change the padding size of specific sides of the element by using the following …

  7. padding - CSS-Tricks

    Sep 21, 2021 · The padding property in CSS defines the innermost portion of the box model, creating space around an element’s content, inside of any defined margins and/or borders.

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

    Dec 7, 2015 · Just use div { padding: 20px; } and substract 40px from your original div width. Like Philip Wills pointed out, you can also use box-sizing instead of substracting 40px:

  9. Padding Guide - Bonding Through Coding

    padding is like margin ’s younger sibling - it makes space around the content, but inside of the border. Padding can use percentages or pixels to provide a measurement. Once again, this …

  10. Padding Left and Right with text - The freeCodeCamp Forum

    Aug 15, 2019 · In the below CSS class, Even when I have not entered any padding, it shows left and right padding around the text. Can someone please explain this behavior. <style> …

  11. Some results have been removed
Refresh