www.webdeveloper.com
Results 1 to 2 of 2

Thread: [FF3] anchored element's clickable area affected by padding/margins

  1. #1
    Join Date
    May 2005
    Location
    Dirty Jersey
    Posts
    1,402

    [FF3] anchored element's clickable area affected by padding/margins

    heres the test code:

    Code:
    <a href="?yea=no"><div><img alt="purposefully broken image"></div></a>
    
    <div style="height: 100px"></div>
    
    <a href="?yea=no"><div style="width: 5000px; height: 100px; padding: 20px 20px 20px 20px"><img alt="purposefully broken image"></div></a>
    
    <div style="height: 100px"></div>
    
    <a href="?yea=no"><div style="width: 5000px; height: 100px; margin: 20px 20px 20px 20px"><img alt="purposefully broken image"></div></a>
    is it possible to use padding/margin and prevent the padding/margin from being clickable in FF?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The html is invalid; move the anchors inside the divs.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles