Answers for "how to add a left margin in css"

1

css add margin to the left

margin-left: 10px;
Posted by: Guest on June-12-2021
-2

how to add a left margin in css

<html>
   <head>
   </head>

   <body>
      <p style = "margin-left: 15px; border:1px solid black;">
         This is a paragraph with a specified left margin
      </p>
      
      <p style = "margin-left: 5%; border:1px solid black;">
         This is another paragraph with a specified top margin in percent
      </p>
   </body>
</html>
Posted by: Guest on July-15-2020

Browse Popular Code Answers by Language