"Trans-Border for Image"
Bootstrap 4.1.1 Snippet by lxsang

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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 ----------> <div class="container"> <div class="row"> <div class="col-3"> <div class="trans-border"> <img src="http://vnmedia.vn/dataimages/201707/original/toc-tien-khanh-my-sexy-quyen-ru-den-tung-centimet-1973428.jpg"> </div> </div> </div> </div>
.trans-border { position: relative; } .trans-border:before { content: " "; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: solid 10px rgba(255,255,255,0.5); box-sizing: border-box; } .trans-border img { width: 100%; }

Related: See More


Questions / Comments: