Results 1 to 6 of 6

Thread: [RESOLVED] [css]tab

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2011
    Posts
    127

    Resolved [RESOLVED] [css]tab

    Experts, can you please tell how to display a link in a new tab? for example if i click a link on my site, the current tab must not change, the link must be displayed in a new tab.

    In addition, how can i set my website so that it will fit to any resolution?

    thanks!

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: [css]tab

    There is no way to explicitly open a link in a new tab. Some browsers may open target="_blank" links in a new tab, rather than a new window as they ought to, but this is not a standard behavior.

    If you want your website to adapt to any resolution, build your layout with percentage-based sizing on the primary container elements. This is often called a "liquid layout."

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [css]tab

    Getting it to open in a new tab is a function of the browser... when the target="_blank" the browser will look in the options... if it needs to open a new tab, it does so... if it needs to open a new window completely, it does so... but it's a function of the browser, not anything you can do in the HTML or code (other than setting target="_blank" )

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2011
    Posts
    127

    Re: [css]tab

    thank you so much. it helps me a lot..

  5. #5
    Member PBertie's Avatar
    Join Date
    Aug 2011
    Location
    Newcastle Upon Tyne
    Posts
    55

    Re: [RESOLVED] [css]tab

    Just as a side note, you cant use target="_blank" in XHTML Strict (Well you can but its not valid). The target attribute is still in the DOM so you have to set the value using javascript.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2011
    Posts
    127

    Re: [RESOLVED] [css]tab

    tnx..

Posting Permissions

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



Click Here to Expand Forum to Full Width