1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS Need help coding links to work

Discussion in 'Web Development' started by legally_brunnette, Mar 2, 2009.

  1. legally_brunnette

    legally_brunnette New Member

    Hi all, and thanks to those who provide these awesome templates! :)

    I downloaded this template:
    https://freewebsitetemplates.com/preview/template21/

    but noticed that something is preventing links from working on the left side and I am not sure what to add to the style sheet to make it work.

    you can see an example on the template listed above where the "learn more" link under news doesn't work. I thought it just needed tweaked, but then realized that no links on that side will work. :confused:

    Hope you can help me as I have heavily modified this template and would hate to heavily modify it more LOL
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Why don't you post "your" code so the members can see the problem and possibly help, as the links on the left work just fine in the template link you posted.

     
  3. legally_brunnette

    legally_brunnette New Member

    Hi again, yes, the tab links on the left nav do work, it is the left content (see the "learn more" link under news and the picture) which is a non working link example.
    https://freewebsitetemplates.com/preview/template21/

    since the problem is in the original template I thought it would be easier for you all to look at the original code. I saw that a few other people on the forum had this problem in the past, but saw no response.

    Thanks again for all your help!
     
  4. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    All the links work in the original template. I have tried them all. Is it maybe your code not working?
     
  5. legally_brunnette

    legally_brunnette New Member

    Well, if the "learn more" graphic works in the left content under "latest news" and the red graphic above the turtle, (not talking about the tabs) on the template here
    https://freewebsitetemplates.com/preview/template21/
    ("more" graphic link on the right works fine)

    then maybe it is a browser issue. Am using IE6. Bummer for me. Because it doesn't work on the original template link.

    Thanks so much for your help!
     
  6. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    You would think it would work as this template was written before IE6. I f you look at the code it's a link, a basic link which has been around for a long time. Why don't you upgrade to IE7 or install Opera or Firefox. They all can be loaded on your machine at the same time.
     
  7. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Does anybody else have some thoughts on this one? Something I just can not put my finger on. All suggestions a welcome...
     
  8. legally_brunnette

    legally_brunnette New Member

    I had someone check it on a different version and browser and it works fine. I don't have a problem upgrading to a different browser, the only problem would be that a certain percentage of folks would have the same issue as I am having. Thanks for your help in working through this, at least I now know that I am not losing my mind!

    You guys are amazing!
     
  9. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    When is the last time you cleared the browser history and cache in IE6 under the Tools - Internet Options? It might help clear up your problem. I used to have to do it often. As some of the sites I use to go to had the same problem. Also I take it you have all updates install from Microsoft. Based on what you said, I looked at my stats for today and IE6 is second runner up.
     

    Attached Files:

  10. legally_brunnette

    legally_brunnette New Member

    yes, to clearing cache and windows updates. Was wondering if it is a setting in internet options for but nothing jumps out at me. Is this the point where we give up and I just redesign around the issue, or do you think some magical line of code will appear in a dream as a fix LOL

    Again, thanks for your help.
     
  11. legally_brunnette

    legally_brunnette New Member

    ok, I may have stumbled upon something:

    I took this line of code:
    a {display:block; position:relative;

    put it in here:
    }

    * html #ie {
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/body_t.gif');
    height: 78px;
    width: 858px;
    position: absolute;
    margin-left: 38px;
    a {display:block; position:relative;
    }


    and the links now work. I don't know if I broke anything else in the meantime LOL, but this might be a go?
     
  12. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Are you loading up to a server or just looking at the page on your pc with IE?
    Have you tried putting in a different link say google.com or have you tried just sending the link to the page where learn more to send people.
    Code:
    <a href="index.html">Home</a>
    Rather then getting hung up on a link which does not work, try something else.

    Just saw your post, it beat mine - if it works go for it.
     
  13. legally_brunnette

    legally_brunnette New Member

    Thanks again for suffering through this with me. I got lucky with a google search and ran across this, which appeared to be the dilemma:


    The Problem
    The problem is found when setting your <a> link as display:block, you’ll see that although it visually renders properly within IE, and mozilla firefox, opera, etc - you will notice that IE doesn’t allow you to click anywhere within the link? What? You say?
    The solution
    The solution is to set a position:relative on the <a>. Like so:

    <style>
    a {display:block; position:relative}
    </style>
    &html>
     
  14. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Excellent work - I have to file this one away in my notes. Your right there is a whole amount written on this one. Hey now after all of this don't forget to post your site in the Review section. I'm sure everyone will want to see it.