+ Reply to Thread
Results 1 to 7 of 7

Thread: Unclickable Links

  1. #1
    garrensilverwing's Avatar
    garrensilverwing is offline x10 Sophmore garrensilverwing is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    148

    Unclickable Links

    http://www.denverchess.com/announcements/?id=13, the likes in the announcements listed on the right are unclickable for some reason in my version of firefox (i assume its the latest version) and they also don't work in Safari. They work fine in IE 7 and IE 8 so I don't know what the problem is. Can anyone help?

  2. #2
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: Unclickable Links

    The "Announcement" div is in front of the "OtherAnnouncements" one. Therefore, you're actually clicking the wrong element.
    Give "OtherAnnouncements" a z-index of 2 and "Announcement" a z-index of 1 and it works.
    Last edited by marshian; 01-08-2010 at 05:26 AM.
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  3. #3
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Unclickable Links

    #OtherAnnouncements is behind #Announcement. Give #Announcement a non-white background color, then turn its positioning on and off in Firebug to see this. From the CSS 2.1 standard on Layered presentation (§ 9.9):

    Boxes with the same stack level in a stacking context are stacked back-to-front according to document tree order.
    Since both elements are positioned, they are in the same stacking context (CSS 2.1, § 9.9.1):
    6. a stacking level for positioned descendants with 'z-index: auto', and any descendant stacking contexts with 'z-index: 0'.
    Floats aren't normally covered up because they're in a higher stacking context:
    3. a stacking level containing in-flow non-inline-level non-positioned descendants.
    4. a stacking level for non-positioned floats and their contents.
    Give #OtherAnnouncements a positive z-index and it will be placed in front of #Announcement.

    There's still the border around #Announcement to contend with. You could put #OtherAnnouncements inside #Announcement (if that makes structural sense), or you could move the border to #BodyWrapper. In either case, set overflow on #BodyWrapper to "auto" so that it contains floated descendents.
    Last edited by misson; 01-08-2010 at 05:37 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  4. #4
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Unclickable Links

    But: remember that z-index only works if relative (or absolute) positioning is used.

    So just having the z-index property won't cut it.

    Position:relative;
    z-index: 2;

    etc.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  5. #5
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: Unclickable Links

    Quote Originally Posted by leafypiggy View Post
    But: remember that z-index only works if relative (or absolute) positioning is used.

    So just having the z-index property won't cut it.

    Position:relative;
    z-index: 2;

    etc.
    Both problematic elements are already positioned relative ;p
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  6. #6
    garrensilverwing's Avatar
    garrensilverwing is offline x10 Sophmore garrensilverwing is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    148

    Re: Unclickable Links

    thanks, dunno why i didnt think of that :/

  7. #7
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Unclickable Links

    I was too lazy to look. :P
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

+ Reply to Thread

Similar Threads

  1. Turn your links into cash - LinkyBank.com
    By linkybank in forum Earning Money
    Replies: 4
    Last Post: 06-26-2009, 09:56 AM
  2. Múltiples links de cuentas de alojamiento / foro
    By Kansy in forum Noticias y Anuncios
    Replies: 4
    Last Post: 03-31-2009, 05:20 PM
  3. Unclickable links
    By conchear in forum Programming Help
    Replies: 6
    Last Post: 04-08-2008, 01:39 PM
  4. Replies: 1
    Last Post: 03-06-2008, 06:15 AM
  5. Urgent help please!
    By retro-bliss in forum Free Hosting
    Replies: 2
    Last Post: 10-25-2007, 03:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers