|
|
#1 |
|
New Member
![]() Join Date: Mar 2011
Posts: 3
|
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. |
|
|
|
|
|
#2 |
|
Platinum Member
![]() Join Date: Sep 2010
Posts: 509
|
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
|
|
|
|
|
|
#3 |
|
Platinum Member
![]() |
Give this a try: http://www.jankoatwarpspeed.com/post...-CSS-only.aspx
|
|
|
|
|
|
#4 |
|
Super Moderator
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|