john lain john lain - 3 months ago 15
CSS Question

html legend tag explore not working center

here explore .. not work

enter image description here

.

bottom is crome... correct

enter image description here

bottom is crome...

legend.scheduler-border {
width:inherit;
font-size: 1.8em !important;
font-weight: bold !important;
text-align: center !important;
}

fieldset.scheduler-border {
border: 1px groove #ddd !important;
padding: 32px 0 70px 2px;
margin: 0 0 1.5em 0 !important;
-webkit-box-shadow: 0px 0px 0px 0px #000;
box-shadow: 0px 0px 0px 0px #000;
}


here code is line front legend tag

Answer

Here is the simple Example of legend tag that align in center

   

<form>
  <fieldset>
    <legend align="center">Personalia:</legend>
    Name: <input type="text" size="30"><br>
    Email: <input type="text" size="30"><br>
    Date of birth: <input type="text" size="10">
  </fieldset>
</form>