The outline classes for buttons almost accomplish this but there are some differences in border colours so they don't look quite right.
You can accomplish the perfect style with a new css class which I've called `btn-white` in my example:
.btn-white {
background-color: #fff;
border-color: #ced4da;
color: #212529;
}
And sometimes input groups with button addons look even better if the border between the text box and the button is removed. There's a few CSS overrides that can achieve this look simply:
.input-group > .input-group-append > .btn-white {
border-left: solid 1px #fff;
}
.input-group > .input-group-prepend > .btn-white {
border-right: solid 1px #fff;
}
Here's the final product, with borders (top) and without (bottom).

As a side note, if you are looking for a way to show a magnifying glass without a custom font or image, you can use HTML entity `⌕`. Don't forget to provide a fallback for accessibility.
Rate this post:
Comments
There are no comments yet. Be the first to leave a comment!