padding for text in html

Solutions on MaxInterview for padding for text in html by the best coders in the world

showing results for - "padding for text in html"
Luc
22 May 2019
1div {
2  /*Padding for text from the top*/
3  padding-top: 50px;
4  /*Padding for text from the right*/
5  padding-right: 30px;
6  /*Padding for text from the bottom*/
7  padding-bottom: 50px;
8  /*Padding for text from the left*/
9  padding-left: 80px;
10  /*If you want to add same amout of padding to all sides use padding*/
11  padding: 100px;
12}