Code: Select all
Group 1 | Group 2 | Group 3 | Group 4
-------------------------------------
Subgroup 1-1 | subgroup 1-2 | subgroup 1-3I have seen this using all sorts of nasty hacks, UL's inside of spans and other weird stuff. I have the Group list worked out, but for the life of me I cannot seem to get even one subgroup to show. Can anyone help me?
My markup and CSS are as follows:
Code: Select all
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="My description" />
<meta name="keywords" content="<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> off, violently frustrated, hoping to eat lunch soon" />
<meta name="robots" content="none" />
<meta name="author" content="Grump Grumperson" />
<title>Title this</title>
<style type="text/css">
/**
* Navigation
*/
#navigation {
background: transparent url('images/nav-background-left.png') no-repeat left center;
height: 80px;
min-height: 80px;
max-width: 1500px;
padding: 0;
margin: 0;
}
#navigation ul li span {
display:none;
}
#navigation ul {
list-style-position: outside;
list-style-type: none;
list-style-image: none;
background: transparent url('images/nav-background-right.png') no-repeat right center;
height: 80px;
min-height: 80px;
margin: 0;
padding-left: 15px;
font-size: 14pt;
font-family: Verdana, Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif;
}
#navigation ul li {
display: inline;
padding: 0 20px;
line-height: 45px;
border-left: 1px solid #fff;
}
#navigation ul li.first {
border-left: none;
padding-left: 0;
}
#navigation ul li.first span
display: block;
position: absolute;
white-space: nowrap;
}
</style>
</head>
<body>
<div id="navigation">
<ul>
<li class="first">Group 1
<span><ul>
<li><a href="#" title="Title">SG 1-1</a></li>
<li><a href="#" title="Title">SG 1-2</a></li>
<li><a href="#" title="Title">SG 1-3</a></li>
<li><a href="#" title="Title">SG 1-4</a></li>
</ul></span>
</li>
<li>Group 2
<span><ul>
<li><a href="#" title="Title">SG 2-1</a></li>
<li><a href="#" title="Title">SG 2-2</a></li>
<li><a href="#" title="Title">SG 2-3</a></li>
<li><a href="#" title="Title">SG 2-4</a></li>
</ul></span>
</li>
<li>Group 3
<span><ul>
<li><a href="#" title="Title">SG 3-1</a></li>
<li><a href="#" title="Title">SG 3-2</a></li>
<li><a href="#" title="Title">SG 3-3</a></li>
<li><a href="#" title="Title">SG 3-4</a></li>
</ul></span>
</li>
<li>Group 4
<span><ul>
<li><a href="#" title="Title">SG 4-1</a></li>
<li><a href="#" title="Title">SG 4-2</a></li>
<li><a href="#" title="Title">SG 4-3</a></li>
<li><a href="#" title="Title">SG 4-4</a></li>
</ul></span>
</li>
<li>Group 5
<span><ul>
<li><a href="#" title="Title">SG 5-1</a></li>
<li><a href="#" title="Title">SG 5-2</a></li>
<li><a href="#" title="Title">SG 5-3</a></li>
<li><a href="#" title="Title">SG 5-4</a></li>
</ul></span>
</li>
</ul>
</div>
</body>
</html>