Results 1 to 10 of 10

Thread: Top border around hyperlink not appearing in IE7

  1. #1
    Join Date
    Mar 2009
    Location
    Calgary, Alberta
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Post Top border around hyperlink not appearing in IE7

    My website looks perfect in all browsers except Internet Explorer.
    I tested it on IE7 and my navigation links don't look too good.
    Problem: On HOVER the top border around the link does not appear ONLY IN IE!


    Link to my site:
    http://www.s239171386.onlinehome.us/index.php

    My CSS:
    Code:
    #navbar{
    	background-image: url(../images/navbar_blue.png);
    	background-repeat: no-repeat;
    	height: 60px;
    	width: 798px;
    	text-align:center;
    	position: relative;
    	margin-top:29px;
    	margin-left:6px;
    	outline: none;
    }
    #navlinks{
    	position:relative;
    	width:797px;
    	height:45px;
    	top:15px;
    }
    #navbar a:link {
    	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    	letter-spacing: 2.3pt;
    	font-size: 14px;
    	color: #BBB;
    	text-decoration: none;
    	padding-top:5px;
    	padding-bottom: 5px;
    	border: 1px dashed #212121;
    }
    #navbar a:hover {
    	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    	letter-spacing: 2.3pt;
    	font-size: 14px;
    	color: #FFF;
    	text-decoration: none;
    	background-color: #333;
    	padding-top:5px;
    	padding-bottom: 5px;
    	border: 1px dashed #557DAD;
    	overflow:visible;
    	visibility:visible;	
    }
    and my HTML:
    HTML Code:
    <div id="navbar">
    <div id="navlinks">
    <ul>
    <li><a href="index.php">&nbsp;Home&nbsp;</a></li>
    <li><a href="about.php">&nbsp;About&nbsp;</a></li>
    <li><a href="portfolio/gallery/index.php">&nbsp;Portfolio</a></li>
    <li><a href="/contact">&nbsp;Contact&nbsp;</a></li>
    </ul>
    </div>
    </div>
    Any help would be appreciated

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    In /CSS/layout_blue.css, change:
    Code:
    #navbar a:link {
    	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    	letter-spacing: 2.3pt;
    	font-size: 14px;
    	color: #BBB;
    	text-decoration: none;
    	padding-top:5px;
    	padding-bottom: 5px;
    	border: 1px dashed #212121;
    }
    #navbar a:visited {
    	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    	letter-spacing: 2.3pt;
    	font-size: 14px;
    	color: #BBB;
    	text-decoration: none;
    	padding-top:5px;
    	padding-bottom: 5px;
    	border: 1px dashed #212121;
    }
    To:
    Code:
    #navbar a:link, #navbar a:visited {
    	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    	letter-spacing: 2.3pt;
    	font-size: 14px;
    	color: #BBB;
    	text-decoration: none;
    	padding-top:5px;
    	padding-bottom: 5px;
    	border: 1px dashed #212121;
    	height: 0px;
    }
    I highlighted what I changed to make it work, and you'll notice I combined the a:visited, and a:link because they were the same thing. From what I figured out, you had to give the link a height, so I gave it 0px (it will auto-extend if needed).
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2009
    Location
    Calgary, Alberta
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Post

    Negative! The height attribute didn't seem to affect anything.

    Any other suggestions?

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    It worked for me, can you please apply the changes so i can see for me self?
    Jeremy | jfein.net

  5. #5
    Join Date
    Mar 2009
    Location
    Calgary, Alberta
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I have made the changes and uploaded it.
    Did you test on Internet Explorer 7?

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Yes, I did test it in IE 7. It should work. Mind providing a screen shot?
    You can see it working in IE 7 here: http://unlinkthis.net/examples/protoquest.html
    Jeremy | jfein.net

  7. #7
    Join Date
    Mar 2009
    Location
    Calgary, Alberta
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I have attached a screen shot.

  8. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Your screen shot is to small for me to see details. (Look at my updated post above).
    Jeremy | jfein.net

  9. #9
    Join Date
    Mar 2009
    Location
    Calgary, Alberta
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Yes it does work on your link! That's really odd.

    I'm using a mac and I'm doing my testing on Windows Server 2008 on a virtual machine. I doubt that has anything to do with it but I guess I'll have to check on an actual PC just to be sure.

    Thanks for your help.

  10. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Hmm, I'm not much of css guy so I wouldn't really know whats going on here... Maybe another member can step up and help.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

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