Button navigation : CSS Button « CSS Controls « HTML / CSS






Button navigation

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<title>Button navigation</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
#navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 1em;
}

#navigation li {
  display: inline;
}

#navigation a:link, #navigation a:visited {
  margin-right: 0.2em;
  padding: 0.2em 0.6em 0.2em 0.6em;
  color: #A62020;
  background-color: #FCE6EA;
  text-decoration: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-bottom: 1px solid #717171;
  border-right: 1px solid #717171;
}

* html #navigation a {
  width: 100%;
}

#navigation a:hover {
  border-top: 1px solid #717171;
  border-left: 1px solid #717171;
  border-bottom: 1px solid #FFFFFF;
  border-right: 1px solid #FFFFFF;
}
    </style>
</head>
<body id="contact">
<div id="navigation">
  <ul>
    <li class="recipes"><a href="#">Recipes</a></li>
    <li class="contact"><a href="#">Title</a></li>
    <li class="articles"><a href="#">Articles</a></li>
    <li class="buy"><a href="#">Buy Online</a></li>
  </ul>
</div>
</body>
</html>

   
  








Related examples in the same category

1.CSS Button with anchor
2.Shading Button
3.Read more and Comments buttons
4.Large Link button
5.Enlargable link button
6.Creating and assigning actions to buttons
7.A text button
8.Buttons
9.Buttons with button element
10.CSS Button
11.css rollover button
12.Using Image to create a Button
13.Button like right menu bar with mouse hover effect
14.Make anchor a button
15.Change input form button style