SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Hyperlink issue

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hyperlink issue

    Hello,

    I'm having the following issue that I hope someone can help me with. I have external links and social media images on one line. The external links are not "hyperlinking" when I put the social media images on the same line. They only link when the images are not there. Below is my code:

    HTML
    Code:
    <div class="topheader">
    <ul id="top">
    <li><a href="#">header 1</a><li>
    <li><a href="#">header 2</a></li>
    <li><a href="#">header 3</a></li></ul></div>
    <div class="social">
    <img src="/images/rss.png">
    <img src="/images/twitter.png">
    <img src="/images/facebook.png">
    CSS
    Code:
    .topheader { position: relative; z-index: 50; width: 962px; margin: 0 auto 20px; background-color: #e2e1e1; }
    #top li {display: inline; list-style-type: none; padding: 10px 10px 0 20px;   }
    #top li a { color: #000; }
    #top li a:hover { color: #b7b7b7; }
    .social { position: relative; z-index: 50; margin: -60px auto 20px; padding-left: 1100px; }
    Any help is appreciated. Thanks.

    Amanda

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2005
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this markup will be better for your needs.

    HTML
    Code:
    <div class="topheader">
    <ul id="top">
    <li><a href="#"><img src="/images/rss.png"></a><li>
    <li><a href="#"><img src="/images/twitter.png"></a></li>
    <li><a href="#"><img src="/images/facebook.png"></a></li></ul></div>
    </ul>

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply. I don't think you understood what I meant. Attached is an image of the issue. The divs are separate because they are separate. Header 1, header 2 and header 3 are supposed to be a link but when the social images are on the same line based on the coding I provided, you can't click on the link.
    Attached Images

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually I figured this out on my own. Thanks for your help!

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
  •