Switch to full style
HTML code examples
Post a reply

change the style of the kbd

Fri Feb 17, 2012 8:05 pm

This example include changing the style of the KBD tag using the CSS attributes.


Code:
<html>
<
head>
<
title>Changing the style of the KBD tag</title>
<
style type="text/css">
kbd {
  
  
border1px outset #333;
  
color#FFF;
  
background-color#432512;
  
padding1px 4px;
}

</
style>
</
head>

<
body>
   <
center>
   <
p>
    
In this example we change the style of the KBD using CSS.
   </
p>
   </
center>
<
p>Press <kbd>W</kbd> or <kbdArrow Up</kbdto move the car forward</p>
</
body>
</
html>

 




Post a reply
  Related Posts  to : change the style of the kbd
 Change table style using CSS     -  
 Change the td font style     -  
 Change the border style on mouse over     -  
 change the font style of the body tag     -  
 change the style of table cells     -  
 change border style to solid at div tag     -  
 Change the default underline style of link     -  
 inline style for link tag.     -  

Topic Tags

HTML Paragraph