Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 03-19-2011, 03:04 PM   #1
New Member
 
Join Date: Mar 2011
Posts: 3
Question CSS menu help

Hello !
i'm trying to make a menu , with tables and CSS. The code is :
.......
......
<ul class="menu">
<li class="item"><a href="index.html">Main</a></li>
<li class="item"><a href=info.html">Info</a></li>
<ul class="subitem">
<li><a href=contact.html">Contact</a></li>
<li><a href="about.html">About</a></li>
</ul>
</ul>
-------
------
when i clik on info the page is open and the submenu is open. .but i want that when i click on info , to remain on the current page and just open submenu.( itry to put # replacing info.html but no effect)
what can i do.
Thank you.
albc123 is offline   Reply With Quote


Old 03-19-2011, 03:21 PM   #2
Platinum Member
 
Join Date: Sep 2010
Posts: 509
Default

post a link to the whole page - upload it as a test to your server. we can't tell what's happening without seeing the code AND the css
d a v e is offline   Reply With Quote
Old 03-19-2011, 07:03 PM   #3
Platinum Member
 
ronaldroe's Avatar
 
Join Date: Jan 2011
Location: Oklahoma City, OK
Posts: 676
Send a message via Skype™ to ronaldroe
Default

Give this a try: http://www.jankoatwarpspeed.com/post...-CSS-only.aspx
ronaldroe is offline   Reply With Quote
Old 03-22-2011, 06:19 PM   #4
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

Tables?
I dont see any tables in your code snippet...
Rule of thumb if you are using nested lists <ul> for sub menus you typically want the submenu list for to reside within the main list item. Like so:

HTML Code:
<ul class="nav">
   <li><a href="">Level 1</a>
         <ul>
                <li><a href="">Level 2</a></li>
         </ul>
   </li>
</ul>
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:54 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.