In bootstrap how to add borders to rows without adding up?
You can remove the border from top if the element is sibling of the row . Add this to css : .row + .row { border-top:0; } Here is the link to the fiddle http://jsfiddle.net/7cb3Y/3/
You can remove the border from top if the element is sibling of the row . Add this to css : .row + .row { border-top:0; } Here is the link to the fiddle http://jsfiddle.net/7cb3Y/3/
Here is solution for Bootstrap3: Use .col-xs-n always. The reason is wkhtmltopdf didnt support css in @media block. In bootstrap3, only col-xs-n rule outside @media block. I’ve checked the bootstrap2.3.2 css, seems spanN rules always be inside @media block. So an ugly solution would be copied out all spanN rules into top level to another … Read more
It really depends on your page’s content but basically you could use HTML5 tags and apply bootstrap classes like this: <section class=”row”> … </section> <footer class=”row”> … </footer> But as said it depends on your content, and even more, you’re not forced to use <section> tags, they have the specific purpose to represents a generic … Read more
For accepting answer As stated in comments: you are missing meta tag with viewport that is required for media-queries to take effect.
I finally found this solution from “Sven” and solved the problem. what I did was I included “https://stackoverflow.com/questions/10560630/bootstrap.min.js” with: <script src=”https://stackoverflow.com/questions/10560630/bootstrap.min.js”/> instead of: <script src=”https://stackoverflow.com/questions/10560630/bootstrap.min.js”></script> and it fixed the problem which looked really odd. can anyone explain why?
It’s because .navbar-fixed-top has a z-index of 1030 while the modal backdrop has a z-index of 1040, causing the modal to overlay the navbar. To fix this, just adjust the .modal-backdrop z-index value to be lower than 1030 – e.g. .modal-backdrop { z-index: 1020; }
here is the solution span{ position: absolute; margin-left: 5px; height: 25px; display: flex; align-items: center; } input{ padding-left: 25px; height: 20px; } <link href=”https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css” rel=”stylesheet”/> <div class=”input-group”> <span> <i class=”fa fa-user-circle-o” aria-hidden=”true”></i> </span> <input type=”text” class=”form-control” placeholder=”Username” /> </div> here is the working fiddle
Add data-backdrop=”false” option as attribute to the button which opens the modal. <!– Button trigger modal –> <button type=”button” class=”btn btn-primary btn-lg” data-toggle=”modal” data-target=”#myModal” data-backdrop=”false”> Launch demo modal </button> See modal options