Alert changes body padding style
See original GitHub issueCurrently, the library will add the padding-right: 15px;
style to the body whenever it’s opened. This breaks my page layout. Is there a way to cancel or remove this?
Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:14
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Bootstrap Modals keep adding padding-right to body after ...
A pure CSS solution that keeps the bootstrap functionality as it should be. body:not(.modal-open){ padding-right: 0px !important; }.
Read more >How To Adjust the Content, Padding, Border, and Margins of ...
In this tutorial, you will learn about the CSS Box Model , a model used to refer to the content, padding, border, and...
Read more >How to change the style of alert box using CSS - GeeksforGeeks
To design the alert box we need jQuery then by using the only CSS we can do ... < style >. /* Body...
Read more >Modal · Bootstrap v5.0
Included are the modal header, modal body (required for padding ), and modal footer (optional). We ask that you include modal headers with...
Read more >HTML DOM Style paddingTop Property - W3Schools
The paddingTop property sets or returns the top padding of an element. ... object.style. ... Change the top padding of a <div> element...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1 but, for the meantime, this worked for me:
I had the same issue with Bootstrap 5. To fix it you need to change the
swal2-shown
CSS class and you need to disablescrollbarPadding
.