CSS for Width and Centering
-
Trying to center a 3 column div element with CSS class as you suggested in an earlier thread. So I did this
#ebs {
width: 130.141em;
margin-left: auto;
margin-right: auto;
}That centered it, but broke responsiveness.
So then I did this
#ebs {
max-width: 130.141em;
margin-left: auto;
margin-right: auto;
}Then it was back to being responsive, but was no longer centered on desktop.
Also tried percentage widths and parent/child div’s without results.
How can I center the columns using div-block like you suggested but ALSO keep it responsive?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘CSS for Width and Centering’ is closed to new replies.