Trying to make a footer with the two buttons by using Bootstrap library. Every button should be 50% width, but instead of be placed in same line, second button moved to new line. If I change width of the buttons to 49% everything works.
I've added box-sizing: border-box;
but it didn't help.
There's my html code:
.footer{
background-color: lime;
bottom: 0;
height: 10vh;
position: absolute;
width: 100%;
text-align: center;
box-sizing: border-box;
}
.footer > button{
width: 50%;
height: 100%;
border-radius: 0px;
box-sizing: border-box;
}
<div class="footer">
<button type="button" class="btn btn-primary btn-lg">Save</button>
<button type="button" class="btn btn-default btn-lg">Close</button>
</div>
My codepen: http://codepen.io/anatoly314/pen/VezEOJ
Update: actually my question is part of well known problem which has much broader covering in this topic: Ignore whitespace in HTML, I won't close it because people already answered but advice you to look for solution in a topic mentioned above.