www.webdeveloper.com
Results 1 to 4 of 4

Thread: **BAFFLED** Link not working

  1. #1
    Join Date
    Apr 2013
    Posts
    1

    **BAFFLED** Link not working

    Hi Everyone,

    I'm an absolute NOOBIE to web development. I have some code here which I am trying to get going for my website but for some reason the link just does not seem to work. Please would assist me in identifying and fixing the problem below:

    <ul>
    <li>
    <a href="#take-me-home" class="nav-active rounded"><span>Take Me Home</span></a>
    </li>
    <li>
    <a href="http://www.mywebsite/store" class="roundedss" target="blank"><span>Template Store</span></a>
    </li>
    <li>
    <a href="#about" class="rounded"><span>About</span></a>
    </li>
    <li>
    <a href="#services" class="rounded"><span>Services</span></a>
    </li>
    <li>
    <a href="#showcase" class="rounded"><span>Portfolio</span></a>
    </li>
    <li>
    <a href="#our-team" class="rounded"><span>On Promo</span></a>
    </li>
    <li>
    <a href="#news" class="rounded"><span>News</span></a>
    </li>
    <li>
    <a href="#contact-us" class="rounded"><span>Contact Us</span></a>
    </li>

    </ul>

  2. #2
    Join Date
    Mar 2011
    Posts
    1,136
    This sometimes happens when an adjacent element's boundaries actually extend over the link (or, more precisely, the containing <ul>) regardless of how it appears in the browser. It looks like you can click on the link, but the browser sees the click as occurring on the adjacent element. Be sure that the margin settings of adjacent elements are set to account for the space that your menu occupies on the page.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208
    target="blank" should be target="_blank". Target Attribute

    The target="" attribute always is misused because browsers are still re-acting to it incorrectly when the improper document type is being used. Developers still make browsers backwards compatible which is why it still works. Sites do not control how links are opened on a web page and should not have that kind of control for Users. The links are set by the users' browsers' settings for Tabs. Or, they can right click any link and select to open in a new window or tab from the popup Context Menu.

    Avoid forcing to open in a new window: http://www.webnauts.net/new-window.html
    Force links to open in new window: http://www.knowlegezone.com/pages/document.aspx?item=9

  4. #4
    Join Date
    Mar 2012
    Posts
    1,269
    Quote Originally Posted by SashJHB View Post
    <a href="http://www.mywebsite/store" class="roundedss" target="blank"><span>Template Store</span></a>
    Is "/store" a folder or a file?
    - If it is a folder it should be "/store/"
    - If a file it should be "/store.html" (or .htm, .php etc...)

    target="blank" should be "_blank" (if you are using it), but for compatibility with mobiles, you should not force new pages. Many mobiles do not support multiple pages.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles