DEV Community

Discussion on: Using Bootstrap 5 with Vue.js

Collapse
namstel profile image
Namstel • Edited on

I'm also experiencing this and I found out that it's because of the py-2 class on the #collapseTarget element. Bootstrap 5 doesn't seem to handle that very well...

A better way to add the padding, is by adding a child element to the #collapseTarget element and giving that element the padding.

Collapse
themesguide profile image
ThemesGuide

Cool, thanks for the tip!

Some comments have been hidden by the post's author - find out more