I’m trying to use a nested list system for my footer… Here is what I want it to look like:
[RIGHT]
Visitor Info | About Us | Events | Sermons | Resources
Ministries • Adults | Kids | Missions[/RIGHT]
Its container div is floated right.
It’s confusing…and took a lot of work to get it to do what I wanted it to do: display both lists next to eachother, while keeping the text right-justified. BUT now that both lists are floating right, the order of the items has been reversed! It displays in the browser like this:
[RIGHT]| Resources | Sermons | Events | Visitor Info | About Us
| Ministries | Missions |Youth | Adults[/RIGHT]
Is there something I’m missing? Is there a better way to do this?
Oh, and in addition - the list-style: disc isn’t showing up. Is it even possible to do what I want to do?
Here’s the HTML I’m trying to use:
<ul class="footer-main">
<li class="footer-first"><a href="#">About Us</a></li>
<li><a href="#">Visitor Info</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Sermons</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Ministries</a>
<ul class="footer-sub">
<li class="sub-dot"><a href="#">Adults </a></li>
<li><a href="#">Youth </a></li>
<li><a href="#">Missions</a></li>
</ul>
</li>
</ul>
Visitor, Events, Sermons, Resources, and Ministries need to all be part of the same list, but because Ministries is the only page with subpages, I needed a way to communicate that in both the visual design and the use of accessible code.
Here’s my css:
ul.footer-main {list-style:none outside none;
float:right;
text-align:right;
}
ul.footer-main li{display:inline;
float:right;
text-align:right;
margin-bottom:7px
}
ul.footer-main li.footer-first{border-left:medium none;}
ul.footer-main li a, ul.footer-sub li a {
font-family:Times, "Times New Roman", serif;
font-size:16px;
text-decoration:underline;
line-height:1em;
border-left:1px solid white;
margin-right:4px;/*space after link*/
padding-left:4px;/*space on left between link and white line*/
color:#2B2822;
}
ul.footer-main li.footer-first{border-left:medium none;}
ul.footer-sub {list-style:none outside none;float:right;}
ul.footer-sub li {display:inline;float:right}
ul.footer-sub li.sub-dot{border-left:none; list-style:disc;}