Migs Martin Migs Martin - 1 year ago 69
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download