Switch to full style
HTML code examples
Post a reply

changing the background color for site main menu.

Fri Dec 09, 2011 1:48 am

changing the background color for site main menu on hover,active and focus statuses.
Code:
<html>
  <head>
    <style type="text/css">
{
      color: black;
      padding: 4px 12px;
      background: #ccecac;
      text-decoration: none;
      border: 2px solid black;
      display: block;
      width: 180px;
}
a:hover, a:active, a:focus {
      background: #446541;
      font-weight: bold;
}
    </style>
    <title>links menu with changing background color</title>
  </head>
  <body>
    <p>
      <a href="#">Home</a><br />
      <a href="#">Register</a><br />
      <a href="#">Login</a><br />
      <a href="#" >Contact us</a>
    </p>
  </body>
</
html>
 




Post a reply
  Related Posts  to : changing the background color for site main menu.
 Show sidebar main menu with scroll down in the web page     -  
 Changing link color     -  
 Changing the color and properties of the header tag     -  
 Changing the color of a graph draw in java     -  
 gradient background color using CSS     -  
 skymiles background color     -  
 change background color with RGB     -  
 Background color - mile200     -  
 Follow window background color     -  
 inherit background color from the parent element     -  

Topic Tags

HTML Background, HTML Link