How to stop shadows from clipping within a repeating group
Here's a quick tip for working with repeating groups and shadows in your Bubble app.
Unlock the secret: Learn how to make your repeating group shadows pop without clipping!
Struggling with shadows? Discover the 3-line CSS trick to perfect shadows in your Bubble app!
Elevate your design: Master the art of custom CSS to enhance your Bubble repeating groups!
Quick Tip for Working with Repeating Groups and Shadows
Here's a quick tip for working with repeating groups and shadows in your Bubble app. I've made it red so that it stands out because what I'm trying to illustrate here is that the shadow doesn't look that great. There's a couple of things I'm going to fix in this video. First of all the gap between each element.
Fixing the Gap Between Elements
So one reason that that is slightly out is that I've got a min height on these two elements here. I'm then going to remove the min height on the row and lastly and this is a little bit of a trick you could have margin below an element below this group below this cell but then that's going to add it to the very last cell on the repeating group. So to get a nice gap between them I am actually going to use the separator I'm going to say let's go for 16 and then all I do is make it completely transparent. Okay that's looking much more uniformed but I'm still getting this clipping effect around my shadow.
Fixing the Shadow Clipping Effect
So how can I fix that? Well I need to write a little bit of custom CSS and I'm going to show you how. So I go into... I right-click... I'm in Chrome... I right-click and I choose inspect and then I find my repeating group and I'm going to write... I'm doing it in the browser inspector this is just temporary this isn't actually changing the code on your website it's just changing the code your browser uses to generate your website until you get... until you refresh the page.
Changing the Overflow Property
What I need to change here is the overflow and so I need to say instead of overflow auto I need to say overflow visible and then I get the true nice effect with my shadow. Now how do I... if I refresh the page... yeah the change isn't saved because all I'm doing is changing the data my browser is using to render the page.
Applying CSS in Bubble
So I need to apply that CSS in Bubble and to do that I need to enable a feature to write in a custom ID for an element such as this repeating group and the way I do that is by going into settings and general and then looking for the option expose the option to add an ID attribute to HTML elements and then I'm going to say show shadows and that allows me to repeat put show shadows in any other repeating group that I want to be able to combat this issue with and to add the CSS to the page I can either do it the individual page in the page header here but to apply this across all of my app I'm going to go into settings SEO and meta tags and then add some custom CSS in here.
Adding Custom CSS
So I'm targeting an ID and so that means it starts with a hash and I've already forgotten what I used show shadows and then the attribute I change is overflow and I make that visible. Let's test that. Okay it's still not worked so what do we try well it's basically because we're having to brute force against Bubble's default style scheme and the way we can brute force it is to add exclamation mark important to the end also I might have made a spelling mistake there.
Final Adjustments and Testing
No show shadows I was just checking it was show shadow not show shadows not show shadow. Let's refresh it that should work now. Okay there we have it so with a bit of custom CSS literally three lines of code which you can see from just a few months ago in the video that is how to get your shadows looking really good in a repeating group.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.