Answers for "how to put a box around text using html css"

8

how do i make a boxin html

<div style="width:500px;height:100px;border:1px solid #000;">This is a rectangle!</div>
Posted by: Guest on March-07-2020
0

how to add a border around text in html

<p style="border:3px; border-style:solid; border-color:#FF0000; padding: 1em;">
  First example with text surrounded by a red border.<br>This example also has multiple lines.
</p>
Posted by: Guest on July-19-2020

Code answers related to "how to put a box around text using html css"

Browse Popular Code Answers by Language