Anchjer
05-20-2005, 12:08 PM
I know this may seem like a weird question, but it’s building up to something.
I need to make this line of code:
<p>Although <ul id="nav"><li>Victor Hugo</li></ul> is better known as a novelist, it was as a poet that he broke new ground.</p>Appear normal and inline just like any normal sentence one might come across, like this:
"Although Victor Hugo is better known as a novelist, it was as a poet that he broke new ground."
Here’s the style I so far:
ul {padding: 0;margin: 0;list-style: none;}
li {float: left;position: relative;width:10em;}
li ul {display: none;position:absolute;top:1em;left:0;}
li > ul {top: auto;left: auto;}
li:hover ul, li.over ul{display: block;}
Thank you very much for any help!
I need to make this line of code:
<p>Although <ul id="nav"><li>Victor Hugo</li></ul> is better known as a novelist, it was as a poet that he broke new ground.</p>Appear normal and inline just like any normal sentence one might come across, like this:
"Although Victor Hugo is better known as a novelist, it was as a poet that he broke new ground."
Here’s the style I so far:
ul {padding: 0;margin: 0;list-style: none;}
li {float: left;position: relative;width:10em;}
li ul {display: none;position:absolute;top:1em;left:0;}
li > ul {top: auto;left: auto;}
li:hover ul, li.over ul{display: block;}
Thank you very much for any help!