<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
ul {
padding: 0;
margin: 0;
list-style: none;
}
li {
display:inline-table;
position: relative;
width: 10em;
}
li ul {
display: none;
position: absolute;
top: 1em;
left: 0;
}
li > ul {
top: auto;
left: auto;
}
li:hover ul {
display:block;
clear:right;
}
-->
</style>
</head>
<body>
<center>
<ul>
<li>Photography
<ul>
<li><a href="/#">Wedding</a></li> |
<li><a href="/#">Function</a></li> |
<li><a href="/#">Candid</a></li> |
<li><a href="/#">Model</a></li>
</ul>
</li> |
<li>Training
<ul>
<li><a href="/#">Amateur</a></li> |
<li><a href="/#">Profesional</a></li> |
<li><a href="/#">World Class</a></li>
</ul>
</li>
</ul>
</center>
</body>
</html>
my problem is when i hover my cursor to the Photography or Training, the list appear not centered, the head of the list appear under their parent and followed by the others appear at the right side, so what should i do to make the list appear at center of their parent?
(i.e : when hover the cursor on the Training, new list appear at the bottom :
Amateur at the left, Profesional under the Training and World Class at the right)

New Topic/Question
Reply



MultiQuote





|