CSS snippet for Vantage sidebar
I read through the page (https://siteorigin.com/vantage-documentation/css-snippets/) and googled the topic, which provided weird info.
How do you add a simple border around the sidebar?
Added a text widget to the sidebar widget, but CSS not working.
Thx
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
3Hi,
In Vantage, the main sidebar uses the #secondary selector, so the CSS should be added in AppearanceCustomizeAdditional CSS or the SiteOrigin Custom CSS editor, not in the Text widget content.
To add a simple border around the entire sidebar, try:
#secondary { border: 1px solid #d9d9d9; box-sizing: border-box; padding: 20px; }If you\’d like rounded corners, add border-radius, for example:
#secondary { border-radius: 6px; border: 1px solid #d9d9d9; box-sizing: border-box; padding: 20px; }A few border-radius options:
– 4px for a slight curve
– 8px for a softer look
– 12px for more rounded corners
If you only want the border around the Text widget itself, use:
#secondary .widget { border: 1px solid #d9d9d9; padding: 20px; box-sizing: border-box; border-radius: 6px; }Cheers
Andrew
Andrew,
Thank you very much. This was EXACTLY what I needed to make the sidebar appear differently than the main page content.
Yes, I removed the “text” widget from the sidebar widget and added this code to the overall site CSS settings.
Super, glad that helped!
Cheers
Andrew