<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
ul,li{
margin:0;
padding:0;
list-style:none;
text-align:center;
white-space:nowrap;
}
li{
display:inline;
position:relative;
white-space:nowrap;
}
li a.last{border-right:1px solid #CFD3E2;}
a {
border-left:1px solid #CFD3E2;
font-family: Arial;
font-size: 11px;
text-decoration: none;
font-weight: bold;
color: #4D9DDC;
padding:4px 10px;
line-height:21px;
}
* html a {
padding:2px 10px;
display:inline-block;
line-height:17px
}
* html a {
height:1%;
}
a:hover{
color: #FFAD2B;
border-bottom:2px solid red;
padding-bottom:2px;
}
* html a:hover {
padding-bottom:0px;
}
#wrapper {
background-color: #F3F4F5;
border: solid 1px #BFCCD7;
}
</style>
</head>
<body>
<h1>Inline centred list</h1>
<div id="wrapper">
<ul>
<li><a href="#">Log in</a></li><li><a href="#">Register</a></li><li ><a class="last" href="#">Help</a></li>
</ul>
</div>
</body>
</html>
|