Facebook Style YUI Tabs
Posted
by Amaç Herdagdelen
on Stack Overflow
See other posts from Stack Overflow
or by Amaç Herdagdelen
Published on 2010-03-21T11:12:42Z
Indexed on
2010/03/21
11:21 UTC
Read the original article
Hit count: 645
Does anyone know how to style YUI Tabview component [1] so it will look like Facebook tabs [2]?
I am using YUI 2. A very crude attempt is below (I modified the example code given in Devtacular [3]). But it does not handle the spacing between the tabs, nor the outer lines around the selected tab.
- http://developer.yahoo.com/yui/tabview/
- http://dl.dropbox.com/u/121472/facebook_tab.jpg
- http://devtacular.com/articles/bkonrad/how-to-style-an-application-like-facebook/
Thanks!
.yui-navset .yui-nav a {
padding: 8px;
background-color: #d8dfea;
color: #3b5998;
font-weight: bold;
font-size: 12px;
float: left;
margin-right: 4px;
text-decoration: none;
cursor: hand;
}
.yui-navset .yui-nav a:hover {
background-color: #3b5998;
color: #ffffff;
text-decoration: none;
}
.yui-navset .yui-nav .selected a {
background-color: #ffffff;
color: #333333;
text-decoration: none;
}
© Stack Overflow or respective owner