Home › Forums › Support › Border + Spacing around widgets This topic has 7 replies, 2 voices, and was last updated 3 years, 4 months ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts October 3, 2020 at 4:05 am #1470241 Caitriona Hello, I wanted to add boxes around my sidebar widgets and used this code: .sidebar .widget { border: 1px solid rgba(232, 234, 237, 1); box-shadow: 0 0 10px rgba(232, 234, 237, 0.5); } This is great but I also need to increase the spacing between the words and the box outline. How do I go about this? October 3, 2020 at 6:22 am #1470402 DavidStaff Customer Support Hi there, you can add some padding to the widgets in Customizer > Layout > Sidebars –> Widget Padding. October 6, 2020 at 2:33 am #1474245 Caitriona Thank you for your response! That’s really helpful π Is there any way to get this kind of padding on just one or two of the sidebar panels? It seems to make the images much smaller so id like to have it on the text widgets only. October 6, 2020 at 3:13 am #1474294 DavidStaff Customer Support Aah ok – so i would do this: 1. Install this plugin: https://en-gb.wordpress.org/plugins/widget-css-classes/ 2. With that installed you can now add a CSS class of no-padding to the widgets you want no padding. 3. Add this CSS to the site: #right-sidebar .no-padding { padding: 0; } October 21, 2020 at 9:09 am #1498657 Caitriona I’m not too fond of plugins and maybe it has grown on me the way it is. Happy enough at the moment but might change again later. Thanks π October 22, 2020 at 12:49 am #1499382 DavidStaff Customer Support Try this CSS: #right-sidebar .widget:nth-child(2), #right-sidebar .widget:nth-child(8) { padding: 20px; } It will add the padding back to the 2nd and 8th widget. November 6, 2020 at 11:43 am #1520988 Caitriona That works really well — thank you so much! π November 6, 2020 at 3:05 pm #1521143 DavidStaff Customer Support Glad to be of help Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In