Hi all
I have a demo here www.ttmt.org.uk/nav
It’s a simple list navigation with drop downs
The ‘Our Work’ drop down has another drop down on the last button.
The drop downs are wider than the parent buttons but the drop under the last button of ‘Our Work’ isn’t wide enough for the text.
Why are these button not wide enough.
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<!--css-->
<style>
body{
background:#eee;
font-family:helvetica, sans-serif;
}
nav{
margin:50px;
float:left;
}
nav ul ul{
display:none;
}
nav ul li:hover > ul{
display:block;
}
nav ul{
list-style:none;
position:relative;
display:inline-table;
}
nav ul:after {
content: "";
clear: both;
display: block;
}
nav ul li{
float:left;
}
nav ul li a{
display:block;
padding:20px;
text-decoration:none;
background:#fff;
color:red;
margin:0 5px 0 0;
position:relative;
}
nav ul li a span{
display:inline-block;
width:14px;
height:7px;
background:blue;
position:absolute;
bottom:10px;
left:50%;
margin-left:-7px;
}
nav ul ul{
padding:0;
position:absolute;
top:100%;
}
nav ul ul li{
float:none;
position:relative;
}
nav ul ul li a{
background:red;
color:#fff;
margin:0 0 5px 0;
}
nav ul ul ul{
position:absolute;
left:100%;
top:0;
}
</style>
<title>Title of the document</title>
</head>
<body>
<nav>
<ul>
<li><a href="#">Home<span></span></a></li>
<li><a href="#">About Us ><span></span></a>
<ul>
<li><a href="#">About Us Bigger Button</a></li>
<li><a href="#">About Us Us</a></li>
<li><a href="#">About Us Us Us</a></li>
<li><a href="#">About Us Us Us Us</a></li>
</ul>
</li>
<li><a href="#">Our Work ><span></span></a>
<ul>
<li><a href="#">Our Work One</a></li>
<li><a href="#">Our Work Two</a></li>
<li><a href="#">Our Work Three ></a>
<ul>
<li><a href="#">Our Work Three Sub Button</a></li>
<li><a href="#">Our Work Three Another Sub Button</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Contact<span></span></a></li>
</ul>
</nav>
</body>
</html>