Additionally, if you wanted it to always match your text color remove the border color on it altogether. Put this in your css: this worked for me. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, Your HTML code linked to bootstrap CSS doesn't reproduce the result you show. Thanks for contributing an answer to Stack Overflow! Finally, we transform the box 45deg to match the angle up properly. Making statements based on opinion; back them up with references or personal experience. Simple and clever. Examples might be simplified to improve reading and learning. To learn more, see our tips on writing great answers. This is slightly more verbose as you must specify id and for attributes to relate the and