I'm trying to center the div using css.
No problem assigning the padding size in pixels, but can't get it work with "auto".
<div id="main" class="clearfix">
<div class="inner-wrap clearfix">
<div id="primary">
<div id="content" class="clearfix">
This it the page I need help with: https://armadaled.org/luminarias_bombillas_reflectores_rd/
Using this CSS added via WP Additional CSS it partially solves the problem, but it loses responsiveness in sense of smaller desktop screens, meantime mobile looks good.
It only works when applied to #main div.
.page-id-6711 #main {
padding-top: 20px !important;
padding-right: auto !important;
padding-left: 150px !important;
width: 100% !important;
height: 100% !important;
}
When logically I need to play with "primary" div's margins. What doesn't work.
I just need this "primary" div to be centered horizontally for all resolutions... But padding-left (right): auto combinations have no effect at all.
Is this related to clearfix? Just don't know where else to look for.
I tried all possible combinations assigning the width in pixels.