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

    Question Jquery lightbox2 recognising text in a new div as link to open up lightbox image?

    So first things first, i am not particularly skilled at coding and do my websites in Dreamweaver, implementing javascript and jquery along the way to tart it up.

    If you go to my new website matthewtitley.com (its just one long page), and scroll down to the 'About' box, you will see that the text is clickable and when clicked it opens up the lightbox image from the gallery above it. As i'm, ahem, not great at coding, could one of you great guys or gals help me out. What causes this? And how can i stop it?

    I apologize if you cannot see js or css files as most are linked to the html page...let me know if u cannot see them and i can add them to this question. Thx.

  • #2
    Regular Coder
    Join Date
    Jun 2009
    Posts
    139
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Your hierarchy indicates that you have a link
    PHP Code:
    <a href="images/lightboximages/toolshop-978px.jpg" rel="lightbox" title="Personal project to create a unique one colour flyer for a London toolshop"
    above the div which contains the text, naturally that turns the entire div into a link. You need to remove it..


  •  

    Tags for this Thread

    Posting Permissions

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