TabView Colours
Posted by GoVegan on 16 Aug 2009 14:31, last edited by GoVegan on 14 Nov 2010 09:35
Description
The TabView is a useful User Interface tool. It's colours can be customised by changing any of the colours below in your CSS code:
.yui-navset .yui-nav, .yui-navset .yui-navset-top .yui-nav { border-color:#FF47a0; /* color between tab list and content */ } .yui-navset .yui-nav a, .yui-navset .yui-navset-top .yui-nav a { background-color:#d8d8d8; /* tab background */ border-color:#FFa3a3; color:#000; } .yui-navset .yui-nav a em, .yui-navset .yui-navset-top .yui-nav a em { border-color: #FFa3a3; } .yui-navset .yui-nav .selected a, .yui-navset .yui-nav .selected a:focus, .yui-navset .yui-nav .selected a:hover { background-image: none; background-color:#FF47a0; /* selected tab background */ color:#fff; } .yui-navset .yui-nav a:hover, .yui-navset .yui-nav a:focus { background-color: #FFdaff; /* selected tab background */ } .yui-navset .yui-nav .selected a, .yui-navset .yui-nav .selected a em { border-color: #FF3356; /* selected tab border color */ } .yui-navset .yui-content { background-color: #FFf5ff; /* content background color */ } .yui-navset .yui-content, .yui-navset .yui-navset-top .yui-content { border-color: #FF8080; /* content border */ border-top-color:#FF3356; /* different border color */ } .yui-navset-left .yui-content { border-color: #FF8080; /* content border */ border-left-color: #FF3356; /* different border color */ } .yui-navset-bottom .yui-content, .yui-navset .yui-navset-bottom .yui-content { border-color: #FF8080; /* content border */ border-bottom-color: #FF3356; /* different border color */ }
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut nibh at velit ultrices imperdiet. Nulla molestie eleifend placerat. Curabitur fermentum porttitor massa, gravida vulputate tortor fermentum vel.
Author
James Kanjo. Please visit his/her userPage.
Hi James,
I have loaded this as a css module on a test page and can go through it and change every color there except the main Blue color of the selected tab.
I have changed all of the settings on every color and it is still blue, so I am guessing this color is set somewhere else in the main CSS code perhaps?
I appreciate any feedback.. All I want to do is change the selected tab color to a light gray to match my site.
Recent Builds
Conky-PitStop
if you post a direct link to the page ill take a look at it
Here is the code running as test:_template at this site on this page
Recent Builds
Conky-PitStop
try this. this is the code that i used on my site
Thank Rhombus, I see now how it needs to be done.
I appreciate the help
Recent Builds
Conky-PitStop
no problem, glad i could help
Hi guys,
The problem was really really simple… that blue colour you saw was really a image. All that needed to be added to the code was this one line:
.yui-navset .yui-nav .selected a,
.yui-navset .yui-nav .selected a:focus,
.yui-navset .yui-nav .selected a:hover {
background-image: none;
background-color:#FF47a0; /* selected tab background */
color:#fff;
}
Which fixes all problems
Thank you James.
Rhombus colors works perfectly on my Conky-Pitstop Wiki site
And this clarity has allowed me to match my site colors for work on the Guayadeque Wiki - I had been wanting to use tab menus but could not get it to look good until now.
They should both be ready for transition tomorrow sometime.
I appreciate it!
Recent Builds
Conky-PitStop
I'm not even sure if you are still an active member, but I'm very new to wikidot CSS and I'm trying to implement this color-changing code. So, here is my really newbie question: where do I put this code? Does it go right into my site's theme code? Does it go somewhere else? :) Thanks.
I've figured this out. :D
But, another question I have is how do you change the color the tab turns when you hover your mouse cursor over it?
Here is the part that controls the color while hovering:
Community Admin