How can I have a DIV\'s width behave like it does when float:left is set, but without setting a float? width:auto doesn\'t seem to do it (in chrome).>
float:left
width:auto
I think this works nowadays:
.center { width: fit-content; margin-left: auto; margin-right: auto; }