I've the following code fragment:
Now I want be able to manage <legend> as a common <div>:
No way: <legend> (at least on Firefox) is still a simil-inline element, the silver background does not expand to the right edge.
Any idea or suggestion?
Thank you
Code:
<form>
<fieldset>
<legend>Titolo</legend>
<p><label>Un testo: <input type="text" /></label></p>
<p><input type="submit" value="CONFERMA" /></p>
</fieldset>
</form>
Now I want be able to manage <legend> as a common <div>:
Code:
legend { display: block !important;
width: 100% !important;
background-color: silver }
No way: <legend> (at least on Firefox) is still a simil-inline element, the silver background does not expand to the right edge.
Any idea or suggestion?
Thank you