"Untitled"
Bootstrap 4.1.1 Snippet by unitedhouse123

<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="languagebox"> <div class="lbox" title="हिंदी भाषा">अ</div> <div class="lbox active" title="English Language">A</div> </div> </div> </div>
.quistionColoum h2{ padding-left: 15px; padding-top: 16px; } .languagebox{ position: relative; display: inline-flex; width: 75px; box-sizing: border-box; text-align: center; font-size: 1.3rem; font-weight: 600; } .languagebox .lbox{ height: 30px; width: 30px; background: #ccc; color: #fff; transition: all linear .2s; border: 3px solid #fff; font-size: 16px; cursor: pointer; } .languagebox .lbox.active{ background: #3265CE; position: absolute; right: 20px; top: 7px; }
<script type="text/javascript"> $(document).ready(function() { $(".lbox").click(function () { $(".lbox").removeClass("active"); $(this).addClass("active"); }); }); </script>

Related: See More


Questions / Comments: