Ranjith Ranjith - 1 year ago 128
HTML Question

div content with border css

I am new to css, and I am trying to create a div element with a border, like



is below:

<div class="mystyle">
<h3>header message<h3>
<p> this is my content</p>

Answer Source

Use <fieldset> tag with <legend> inside it.

Try this code:

  <div class="mystyle">
    <h3>header message</h3>
    <p>this is my content</p>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download