On 2009-02-08, richard wrote:
> I have below a simple nested list situation.
> I want the state names to appear on every other line as the top <ul>.
> Below each state name is the second list which I want to be inline.
> If I simply declare "display:inline" either as a class or an inline
> style statement, the second line does not appear inline as intended.
>
> What's the trick?
>
>
><div class="state">
><ul>
><li>Alabama</li>
> <ul class="line">
> <li>Top 50</li><li>Cities</li><li>Zip code</li>
> </ul>
><li>Alaska</li>
><li>Arizona</li>
><li>Arkansas</li>
></ul>
></div>
<div class="state">
<ul>
<li>Alabama
<ul class="line">
<li>Top 50</li><li>Cities</li><li>Zip code</li>
</ul>
</li>
<li>Alaska</li>
<li>Arizona</li>
<li>Arkansas</li>
</ul>
</div>
--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
|