Archived topic
Remove padding for a single right sidebar widget
1 reply · Started by Remco on February 19, 2019
Hi Guys,
As the title states, I would like to remove the padding, but only for a single widget on the right sidebar.
Could anyone point me in the right direction of how to acomplish that!
Thanks :)
Hi there,
if it is the first widget then this CSS:
.inside-right-sidebar .widget:first-child {
padding: 0;
}
.inside-right-sidebar .widget:first-child img {
vertical-align: middle;
}
The second rule is only required if it contains an image, it gets rid of some extra space below it.
If its the second widget for example then the CSS selctor will look like this:
.inside-right-sidebar .widget:nth-child(2) {