Migs Martin Migs Martin - 9 months ago 53
CSS Question

How do I change color in <kbd>?

How to change color in


Here is my code:

<a class="navbar-brand" href="#"><kbd><?php echo $x; ?></kbd></a>

Answer Source

Use the following to change the colors of the <kbd> element:

.navbar-brand kbd {
  background-color: lightblue;  // Changes background color
  color: #333;                  // Changes text color