R
richard
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>
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>