I'm trying to use a fieldset but it is not working as exactly i wanted...
The legend is displayed outside fieldset...But I want it covered like normal fieldsets.
My code is,
I want to create a box like this with title:
Can any one please let me know if there is a default CSS tag to do this? Or do I need to create my custom style?
I'm trying to use a <legend> as a title inside a <fieldset>.
In browsers other than IE, the <legend> is positioned on the top border of the <fieldset>, with the text perfectly …
I am trying to apply display: inline; to the <legend> element in my <fieldset> element, so that the following <span> will follow on the same line, but my CSS is having no effect.
JSFiddle
…