.custom-border {
border: 2px groove #000 !important;
padding: 0px 5.4em 1.4em 6.4em !important;
margin: 0 0 1.5em 0 !important;
box-shadow: 0px 0px 0px 0px #000;
margin-top: 30px !important;
}
.custom-legend {
font-size: 1.2em !important;
text-align: left !important;
width: auto;
padding: 0 10px;
border-bottom: none;
margin-top: -15px;
background-color: white;
color: black;
}
<fieldset class="custom-border">
<legend class="custom-legend">my legend</legend>
<form>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</fieldset>
Code:- http://jsfiddle.net/Dhanunjay/6r3wos04/10/
I need help in adjusting the code above. It is currently taking up the entire screen, but I want it to be centered with equal space on all four sides.
Even after removing some CSS properties like padding, width, and margin from the classes, the issue persists. Any suggestions for making this design responsive using col-sm, lg, xs classes?