kingsize Posted November 2, 2006 Share Posted November 2, 2006 I want tabs please! New windows are ok, but tabs would be better.target="_blank" works well for opening a new window, as does target="_new"I read that I had to add a little something to my stylesheet: If a user wanted to have new windows open in new tabs instead, she could use the following user style sheet to do so: * { target-new: tab ! important }But it didn't work, so I added it to body {target-new: tab ! important } and a {target-new: tab ! important }, just to be sure but with no luck.Is there a way to do it using html/css? No javascript. If so, can you provide a working example with html and css? Thanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 2, 2006 Share Posted November 2, 2006 target-new only specifies that if the link is opened in a new object, if it should be opened in a new tab, new window, or none (don't display it). It defaults to window. But it doesn't say to open the link in a new object, just if it is, what to use. Try this instead:target: new tab;But, considering that part of the CSS3 spec is from February 2004, don't expect a ton of support for it (IE7 only supports CSS3 color names).Actually, from what I can tell it doesn't look like anything supports the target properties. Sorry, check back in a few years. Link to comment Share on other sites More sharing options...
croatiankid Posted November 2, 2006 Share Posted November 2, 2006 FireFox 2.0 opens target="_blank"s in tabs I think Link to comment Share on other sites More sharing options...
justsomeguy Posted November 2, 2006 Share Posted November 2, 2006 Yeah, that's the HTML attribute though, we were talking about a CSS property. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now