[Theme: Twenty Twelve] CSS "margin" Override
-
OK this is a tricky one. I have created a third “home-page-widget-area” by adding the function array and placing a duplicate widget in sidebar-front.php (that was the easy bit)
Now I am trying to make a 3 column layout and I have added this code
.widget-area .front-widgets { width: 30% !important; margin-right: 3.3%; float: left !important; } .widget:nth-child(2n), .template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { margin: none; /* HERE IS THE PROBLEM YOU CANT HAVE THE VALUE "NONE" */ }
The original style looks like this
.template-front-page .widget-area .widget:nth-child(2n), .template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets { margin: 0 0 1.71429rem; }
If turn this margin value off in firebug the 3.3% right margin activates on all three separating all equally to become a dynamic, three column layout. However, I can’t override the style with a margin value of “0” as this doesn’t work either and margin value “none” doesn’t work either so I can’t figure out how to get rid of it without editing the parent which I don’t want to do, as this is going to be a master-child.
Any ideas?
- The topic ‘[Theme: Twenty Twelve] CSS "margin" Override’ is closed to new replies.