lsargent
04-03-2011, 01:10 AM
I have a UL LI text menu in which one menu item I want as non-linkable text.
The plain text item wrapped in the li tag is not vertically aligning with the linked text items. It also doesn't seem to have the appropriate horizontal spacing that other linkable items have between themselves.
You can see it here:
http://www.norrislakevilla.com/new-site/index.html
Where "Explore Villas »" is the non-linkable text.
HTML Code:
<div class="menu">
<ul>
<li><a href="index.html" class="active"><span>Home</span></a></li>
<li><a href="contact.html"><span>Contact</span></a></li>
<li><span>Explore Villas »</span></li>
<li><a href="night-sky.html"><span>Night Sky</span></a></li>
<li><a href="big-dipper.html"><span>Big Dipper</span></a></li>
<li><a href="slice-of-heaven.html"><span>Slice of Heaven</span></a></li>
</ul>
</div>
CSS Code:
.menu { float:right; padding:25px 15px 0 0; margin:0; width:580px; font:normal 12px Arial, Helvetica, sans-serif; text-decoration:none; color:#00A900;}
.menu ul { text-align: right; padding:0; margin:0; list-style:none; border:0; float:right;}
.menu ul li { float:left; margin:0; padding:0 5px; border:0;}
.menu ul li a { float:left; margin:0; padding:13px 0; color:#a1a1a1; font:normal 12px Arial, Helvetica, sans-serif; text-decoration:none;}
.menu ul li a span { padding:13px; background:none;}
.menu ul li a:hover { color:#fff; background: url(images/r_menu.gif) no-repeat right;}
.menu ul li a:hover span { color:#fff; background:url(images/l_menu.gif) no-repeat left;}
.menu ul li a.active { color:#fff; background:url(images/r_menu.gif) no-repeat right;}
.menu ul li a.active span { color:#fff; background:url(images/l_menu.gif) no-repeat left;}
Obviously the ".menu ul li a" & "span" has other styling imposed upon it, but I've tried several styling commands to make the plain text align & space correctly with no luck.
Any suggestions?
The plain text item wrapped in the li tag is not vertically aligning with the linked text items. It also doesn't seem to have the appropriate horizontal spacing that other linkable items have between themselves.
You can see it here:
http://www.norrislakevilla.com/new-site/index.html
Where "Explore Villas »" is the non-linkable text.
HTML Code:
<div class="menu">
<ul>
<li><a href="index.html" class="active"><span>Home</span></a></li>
<li><a href="contact.html"><span>Contact</span></a></li>
<li><span>Explore Villas »</span></li>
<li><a href="night-sky.html"><span>Night Sky</span></a></li>
<li><a href="big-dipper.html"><span>Big Dipper</span></a></li>
<li><a href="slice-of-heaven.html"><span>Slice of Heaven</span></a></li>
</ul>
</div>
CSS Code:
.menu { float:right; padding:25px 15px 0 0; margin:0; width:580px; font:normal 12px Arial, Helvetica, sans-serif; text-decoration:none; color:#00A900;}
.menu ul { text-align: right; padding:0; margin:0; list-style:none; border:0; float:right;}
.menu ul li { float:left; margin:0; padding:0 5px; border:0;}
.menu ul li a { float:left; margin:0; padding:13px 0; color:#a1a1a1; font:normal 12px Arial, Helvetica, sans-serif; text-decoration:none;}
.menu ul li a span { padding:13px; background:none;}
.menu ul li a:hover { color:#fff; background: url(images/r_menu.gif) no-repeat right;}
.menu ul li a:hover span { color:#fff; background:url(images/l_menu.gif) no-repeat left;}
.menu ul li a.active { color:#fff; background:url(images/r_menu.gif) no-repeat right;}
.menu ul li a.active span { color:#fff; background:url(images/l_menu.gif) no-repeat left;}
Obviously the ".menu ul li a" & "span" has other styling imposed upon it, but I've tried several styling commands to make the plain text align & space correctly with no luck.
Any suggestions?