I'm trying to center a group of fieldsets that I have, every example I find online tells me to use margin: auto; but that doesn't seem to be working for me. I've also tried grouping them into a div but that didn't work either.
Here is my CSS:
fieldset {
text-align: center;
margin:auto;
display: inline;
border-color: black;
border-width: 5px;
}
You can't use
margin:auto
when element isdisplay:inline
.You should either make them
display:block
to repond tomargin:auto
or style their wrap element totext-align:center
and then resettext-align
in descendants.