Setting background for tab panels

Hi there,

I have a style for the tab panel as follows. It has got a background color property settings.

tabpanel.linktab
{
	color: #ff0000;
	border-style: none; 
	font: bold 12pt "Arial, Helvetica, sans-serif"; 
	margin: 0px 0px 0px 3px;
    background-color: #EDF3F8; 
    border-style: solid; 
    border-width: 0px 0px 0px 0px; 
	
}

But the background property settings never reflects in the tabpanel. The background is always grey in color.

Also if I directly set the background color of the tab panel through the property window it would not work.

Can I set the background color for the tab panel or not? Please help me clarify.

Thanks!

The bgcolor on a tab is defined by the form placed on the tab, so change form bgcolor.

I am sure that background of the tab panel is defined by the background color of the form placed on it. But I am talking about the background color of the actual tab on the top and the adjacent area.

I can email you the screenshot if you want.

Thanks

Maybe related to my questions here?

StyleSheet setting for Tab - Classic Servoy - Servoy Community

Paul

faheemhameed:
…But the background property settings never reflects in the tabpanel…

If I use your style snipped and set the tabpanel styleClass property to “linktab” I get a white tab background and red tab text, so seems to work fine.