Gives solution for any Error occurs in any Programming Language, .Net Core 3.1, 3.0, C#,Asp.Net,Sqlserver,MVC,Java,Php,Html,Css,Jquery,errors and solutions,Latest News,Technology

Thursday, 4 August 2016

Bootstrap modal fade problem solution

No comments :

Sometimes Bootstrap modal popup will get fade problem (grey fade under background). This problem happens at if the modal container has a position style like fixed or relative with in an element. Even if you are using code straight from bootstrap example.

Solutions:

You can move modal out these containers before displaying it.
$('#modalid').appendTo('body').modal('show');

OR

Setting .modal-backdrop class style z-index to -1
.modal-backdrop{
   z-index:-1;
}

No comments :

Post a Comment