- This topic has 8 replies, 4 voices, and was last updated 6 years, 8 months ago by
Tom.
-
AuthorPosts
-
October 27, 2015 at 7:51 am #147970
Paolo
Okay, so I put an image in the right sidebar widget of my site. But it doesn’t seem to fit well. There’s a big (and obvious) white space around. I think I need to change the padding but I don’t know how.
Can you please help me with it?
Thanks!
October 27, 2015 at 7:59 am #147971bdbrown
Hi Paolo. Can you post a link to your site so we can see the issue? Thanks.
October 27, 2015 at 11:11 am #148025Tom
Lead DeveloperLead DeveloperEach sidebar widget has 40px of padding (by default).
You can remove the padding from widgets using our Spacing add-on, but that will apply to all widgets.
To target a specific widget, you’ll need to find the ID of that specific widget using your browsers “Inspect Element” tool.
For example, our 30 Day widget on the right has this ID: text-6
So to remove the padding, I would add this CSS:
#text-6 { padding: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 1, 2016 at 7:30 am #205850Franz
Hi Tom,
I did it like this, but there is still a white border at the bottom and right side of the first banner of the sidebar. How i can remove this?July 1, 2016 at 9:52 am #205866Tom
Lead DeveloperLead DeveloperTry adding this CSS:
.widget_siteorigin-panels-image img { vertical-align: bottom; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 1, 2016 at 10:05 am #205868Franz
Thank you, bottom is handeled.
Ther is still a thin white border at the right side.July 2, 2016 at 12:15 am #205922Tom
Lead DeveloperLead DeveloperI’m not sure what that white line on the right side is – it’s not CSS.
Try adding the widget in a regular Text widget using HTML:
<img src="URL TO THE IMAGE" alt="" />
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 2, 2016 at 1:39 am #205935Franz
Thank you, Tom.
It’s not that important.
But this thin white line ist still there if i change the background colour.
And it’s also visible on your page sidebar at the blue field “30 DayGuarantee!”
Maybe you have another idea.July 2, 2016 at 10:37 am #206037Tom
Lead DeveloperLead DeveloperThat is super strange – I have three screens in front of me.
On two of them, there’s no line – on the third, which is the highest definition one, it’s there.
I’ll dig a little deeper to see if I can find the cause.
Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.