Migs Martin Migs Martin - 9 days ago 4
CSS Question

How do I change color in <kbd>?

How to change color in

<kbd>
?

Here is my code:

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

Answer

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
}