"Transparent modal with absolute element"
Bootstrap 3.3.0 Snippet by DianaofArc

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <button class="btn btn-lg center-block btn-primary" data-toggle="modal" data-target="#myModal">Click me! </button> <div id="myModal" class="modal fade" role="dialog"> <!-- Modal content--> <div class="modal-dialog"> <div class="modal-content img-responsive" style="background-color: rgba(139, 0, 0, 0.9); color: #fff;"> <img src="https://t6.rbxcdn.com/c12c1ae65824815a2869db34239789da"> <div class="modal-body" style="background-color: rgba(239, 83, 80, 0.4); margin: 15px;"> <button type="button" class="close" data-dismiss="modal">X</button> <h3>TITLE</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel voluptatibus culpa at nulla, provident ullam eligendi, sint debitis nesciunt optio necessitatibus soluta, autem suscipit cum ea fuga architecto delectus odio.</p> </div> </div> </div> </div>
button { margin-top: 50px; } #myModal img { position: absolute; left: -15%; width: 30%; z-index: 1; top: -35%; } #myModal .modal-content { margin-left: auto; margin-right: auto; font-size: 2vh; position: relative; top: 50%; transform: translateY(-50%); width: 80%; max-width: 800px; } #myModal .modal-body { padding-left: 20%; } #myModal .modal-dialog { height: 100%; width: 100%; }

Related: See More


Questions / Comments: