Answers for "how to set margin with text in html"

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 set margin with text in html"

Browse Popular Code Answers by Language