Answers for "margin for text in html"

CSS
1

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

Browse Popular Code Answers by Language