I am trying to modify/update a webmail script where i want to have two hyperlinks inside a li tag without the second link wrapping to the next line. I also want to have the whole <li> to be clickable, similar to what yahoo mail has.
I have searched on here and googled but can’t find anything that works.
this is what isnt working:
<div class="vertical">
<ul>
<li><a href="#">Folders</a></li>
<li><a href="#">Inbox</a></li>
<li><a href="#">Drafts</a></li>
<li><a href="#">Sent</a></li><br/>
<li><a href="#">Trash </a><a href="#">[empty]</a></li>
</ul>
</div>
This is the code i have so far including the css that i cant get it to work.
Thanks in advance for any help.
See working example here: http://jsfiddle.net/pratik136/z4gQC/26/
Change your CSS to:
Edit:
OP requested the [empty] one to be right aligned.
Fiddle: http://jsfiddle.net/pratik136/z4gQC/35/
Add a class to
<a href="#">[empty]</a>asAnd add the following to your CSS: