How to create a sticky floating sidebar widget in Brizy Cloud

Learn how to build a true sticky floating sidebar in Brizy using a simple “inner container” trick and a few lines of CSS. Works with any page/blog layout.
Sticky sidebars are great for keeping CTAs, lead magnets, ads, or navigation visible while users scroll through long content. In Brizy, though, a sticky sidebar is not as simple as position: sticky; because of how sections and columns are rendered. In this guide, you will see exactly how to create a floating sidebar widget in Brizy using an inner container and custom CSS that works reliably with Brizy’s flexbox layout.
Before jumping into the fix, it helps to understand why standard sticky CSS usually fails inside Brizy layouts.
Because of this, simply setting the left column to position: sticky will not give the floating effect you expect in a blog layout.
The solution is to stop trying to make the entire column sticky and instead make a smaller inner container sticky. Think of it like this:
By placing all your sidebar elements into a shorter inner Div and making that Div sticky, you allow it to move up and down inside the taller column while keeping it pinned to the viewport as the user scrolls.
In Brizy, first set up your two‑column blog layout and then add the inner container that will become sticky.
Demonstration: Click to View | Click to View
At this point, the sidebar column is just a normal column; the inner Div is what will be turned into the floating widget.
Next, inject custom CSS so the inner container becomes sticky and Brizy’s overflow behaviour stops blocking it.
In Brizy Cloud (site options), open the Footer Code Injection area and paste the below code:
Demonstration: Click to View
-------------------------------------------------
<style>
/* 1. Unlock Brizy parents so sticky can work */
.brz *,
.brz-section,
.brz-row,
.brz-columns,
.brz-column,
.brz-column__content {
overflow: visible !important;
overflow-x: visible !important;
}
/* 2. Make sure the column with the sticky div can align correctly */
.brz-column:has(#my-sticky-content) {
align-self: flex-start !important;
}
/* 3. Sticky inner container */
#my-sticky-content {
position: sticky !important;
top: 140px !important; /* distance below header; adjust to your header height */
align-self: flex-start !important;
height: fit-content !important;
max-height: 80vh !important; /* prevents sidebar from exceeding viewport height */
width: 100%;
z-index: 99;
/* optional visual styling to keep rounded edges and spacing */
border-radius: 12px;
overflow: hidden;
padding-top: 10px;
}
/* 4. Disable sticky on mobile/tablet for better UX */
@media (max-width: 991px) {
#my-sticky-content {
position: static !important;
margin-top: 0;
}
}
</style>
-----------------------------------------
What this does:
You can tweak:
Once the CSS is in place, test the sidebar on different devices and page types.
If any specific elements (like sliders or popups) misbehave because of the global overflow rule, you can add small override rules for those particular classes, while keeping the sticky behaviour intact.
A sticky sidebar is most effective when it supports the reader journey and conversions rather than just repeating navigation.
You can use it to highlight:
This works especially well on long‑form content where users are engaged and more likely to interact with a visible, persistent widget.
Request for Quote or Inquire
Please request a quote or inquire about the services offered by me.