Results 1 to 4 of 4

Thread: Can't hide "Skip to content" link in IE 7

  1. #1
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can't hide "Skip to content" link in IE 7

    Hello all,
    I'd love to get some advice on how to hide a "skip content" link in Internet Explorer 7. The link is hidden at the top of the page in all the other browsers I tested, but in IE 7 it is showing up as its own separate line (above the web page, rather than floated to the left as I specified in the CSS).

    Here's the CSS I'm using:
    Code:
    .skiplink{ float:left; color:#792711; padding-left:5px; }
    .skiplink:focus, .skiplink:hover { color:#fff6dc; padding-left:5px; }
    And the markup:
    HTML Code:
    <body>
    <a href="#content" class="skiplink">Skip to content</a>
    ....
    <div class="maincontent">
    <a name="content"></a>
    ...
    Here's my web page if it helps: http://calligraphyqalam.com/index2.html

    Thanks in advance for any help you can give me!
    Elisabeth
    Last edited by Snookerman; 04-22-2009 at 08:06 AM. Reason: added [code] and [html] tags and added "Resolved" prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You have a conditional comment with a stylesheet for IE users only:
    Code:
    <!--[if IE]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
    that stylesheet does not contain the style code for the skiplink.

    Good luck!

  3. #3
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much! It worked.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!
    You can go to your first post in this thread, click then click Go Advanced and add the Resolved prefix to the thread title.
    This will let other users know the problem has been solved.

    Good luck with your site!

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
  •