Archived topic
Change Width of Single Sidebar Widget
3 replies · Started by Rylan Urban on May 11, 2020
I'm wondering the best way to set a max width for a single sidebar widget.
For example, here, the third right-sidebar widget houses a response ad which fills the entire space of my widget area. However, I prefer the max width to be closer to the image in the first widget (300px).
Without changing the adsize (it doesn't work for mobile when I do that), how can I set a max width for this widget and keep the contents centred.
Thank you!
Rylan
Hi Rylan,
I'm not sure it's possible to manipulate the sizes of those ads.
You could try adding padding to the widget:
#custom_html-3 {
padding-left: 20px;
padding-right: 20px;
}
Thanks Tom, exactly what I was looking to use. For some reason I can never guess the correct element when I'm trying to edit CSS. I "inspect it" but then never know which one to use.
Rylan
Glad I could help :)