Hello
use display inline to your advantage
Code:
<!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" xml:lang="en" lang="en">
<head>
<title>12345 12345 12345 12345 12345</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- saved from url=(0022)http://www.domain.com/ -->
<style type="text/css">
*{padding:0;margin:0;}
.x{
padding:.95em 0;
text-align:center;
list-style:none;
}
html .x .y{border-left:1px solid #0000ff;}
.x li{display:inline;font-size:1em;}
.x a{
padding:.9em 3em;
background:#ccccff;
border:1px solid #0000ff;
border-left:none;
}
.x a:hover{background:#ffccff;}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<ul class="x">
<li><a href="##" class="y">12345</a></li><li><a href="##">1234567</a></li><li><a href="##">12345678</a></li><li><a href="##">123</a></li>
</ul>
</body>
</html>
yours ?
Code:
<!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" xml:lang="en" lang="en">
<head>
<title>12345 12345 12345 12345 12345</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- saved from url=(0022)http://www.domain.com/ -->
<style type="text/css">
*{padding:0;margin:0;}
#box{
text-align:center;
background:#131313;
margin:0 auto;
list-style:none;
padding:10px 0;
}
#box li{display:inline;}
#box a{
padding:10px 27px 10px 27px;
text-decoration:none;
color:#ffffff;
}
#box a:hover{background:#ff0000;color:#000000;}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<ul id="box">
<li><a href="##">text1</a></li><li><a href="##">text1</a></li><li><a href="##">text1</a></li><li><a href="##">text1</a></li>
</ul>
</body>
</html>
Bookmarks