Answers for "how to give margin to a text"

CSS
2

margin for text in html

p {
  /*If you want to apply margin for all four sides with the same amount*/
  margin: 100px;
  /*Margin from top*/
  margin-top: 100px;
  /*Margin from bottom*/
  margin-bottom: 100px;
  /*Margin from right*/
  margin-right: 150px;
  /*Margin from left*/
  margin-left: 80px;
}
Posted by: Guest on February-26-2021

Code answers related to "how to give margin to a text"

Browse Popular Code Answers by Language