Welcome ðŸŽ‰

logo

ReactLMS

Search
Light Mode
Contact Us

2 min to read

Contact us

No results for your search.
Sorry, an unexpected error occurred

Concept


padding is a CSS property used to create spacing between the content and the border of a box.


padding has multiple implementations, for example:


We can also set different spacing for each direction by using:


Usage


Example

HTML

<h1>Hello<h1>
<p>Everyone</p>







CSS

h1 {
  padding: 20px;
  background: lightcoral;
}







Result

Hello

Everyone


Experience


Hello



Read more
On This Page