|
-
Aug 26th, 2011, 12:51 AM
#1
Thread Starter
Lively Member
[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!
-
Aug 26th, 2011, 11:28 AM
#2
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."
-
Aug 26th, 2011, 11:51 AM
#3
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
-
Aug 30th, 2011, 06:14 PM
#4
Thread Starter
Lively Member
Re: [css]tab
thank you so much. it helps me a lot..
-
Sep 1st, 2011, 12:09 PM
#5
Member
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.
-
Sep 1st, 2011, 06:08 PM
#6
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|