Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2007
    Thanked 0 Times in 0 Posts

    Cool define clickable area of list

    Hello there. I have created a site using an unordered list but am having some problems with actually selecting both the li and the a tag at the same time. Its a little hard to explain but i have an example on my site:


    (click on FURNITURE and then METHERINGHAM) You will notice that each clicking on each li expands some text below it and also links to a html page containing images in the right frame. My problem is that it is possible to expand the li without engaging the a tag if you click just between the li items.

    I would like to make it impossible to expand the list without engaging the a tag.

    I hope this makes sense, i have posted this in the javascript section also, but im not sure if it could be a css issue?

    Any help is greatly appreciated... i really am stuck and know very little about javascript, so please explain simply to me.

    Many thanks


  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,053 Times in 1,026 Posts
    Please don’t cross-post! That’s against the rules. After 13 posts you should slowly be aware of how to behave. I’d suggest continuing in the JavaScript section as that’s more related to it.

    Well, then again… this could be achieved solely with semantic HTML and CSS as well. Hm… but since it’s a JS that is evoking the function keep it there.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts