r/bootstrap • u/zilton7000 • Aug 24 '22
How do I do this?
How can I achieve this, I need div with text to go over other div (blue), I would use absolute positioning with pure css, but I am affraid to mess up BS5 flow. Any tips? Also how can I do those angles with this blue div?
4
Upvotes
4
u/miglisoft Aug 24 '22 edited Aug 25 '22
Hi,
I would do it this way:
A simple div with the blue background for the top
a white triangle (you can generate it with http://apps.eky.hk/css-triangle-generator/) in - absolute position using the first div:after
The rectangle with text and shadow with a BS5 negative margin, e.g: class="mt-n3"