May 17, 2019 at 11:58 am #288025
Hi, I’m working with Bootstrap modals and centering them with this cool trick https://css-tricks.com/quick-css-trick-how-to-center-an-object-exactly-in-the-center/ I’m using the last trick with the transform translate 50% and everything is OK, but when I want to download something in Chrome, the navigator open a box and the modal makes strange movements (because of the translate) and I wan’t to know if there is a way that the modal avoid this movements. The difference is that I have the position relative instead of fixed, because if I put fixed the modal lost his centering.May 21, 2019 at 6:26 pm #288191
We’d need to see an example but any “cool tricks” to center bootstrap modals should be unnecessary. See here https://getbootstrap.com/docs/4.3/components/modal/#vertically-centered.
You must be logged in to reply to this topic.