Can't change css modal bootstrap. Modal fade in bootstrap auto add padding-left 15px

纵饮孤独 提交于 2019-12-23 15:04:09

问题


I created this question but there is no answer. so i recreated.

I use modal bootstrap. When no scroll bar appears, everything is normal. But when I add more data, modal auto add style="display: block; padding-left: 15px;":

<div class="modal fade in" id="tags_modal" role="dialog" style="display: block; padding-left: 15px;">

I try change it but I can't. My code: https://jsbin.com/fusinoc/1/edit?html,css,output

My layout: my layout


回答1:


Instead of adding styles inline, add below code in your css.

#myModal2 {
  padding-left: 0 !important;
}

working bin

Hope this helps :)



来源:https://stackoverflow.com/questions/47259203/cant-change-css-modal-bootstrap-modal-fade-in-bootstrap-auto-add-padding-left

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!