width auto adjust css code example
Example: how to make div width auto adjust
.center {
display: inline-block;
position: relative;
left: 50%;
transform: translateX(-50%);
}
.center {
display: inline-block;
position: relative;
left: 50%;
transform: translateX(-50%);
}