# Setting background for tab panels

**URL:** <https://forum.servoy.com/t/setting-background-for-tab-panels/4076>\
**Category:** Classic Servoy\
**Created:** [April 20, 2005, 9:48am UTC](https://forum.servoy.com/t/setting-background-for-tab-panels/4076 "2005-04-20T09:48:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![faheemhameed](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@faheemhameed](https://forum.servoy.com/u/faheemhameed)\
**Post date:** [April 20, 2005, 9:48am UTC](https://forum.servoy.com/t/setting-background-for-tab-panels/4076/1 "2005-04-20T09:48:56Z")

</div>

Hi there,

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

```auto
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!

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [April 20, 2005, 11:39am UTC](https://forum.servoy.com/t/setting-background-for-tab-panels/4076/2 "2005-04-20T11:39:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![faheemhameed](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@faheemhameed](https://forum.servoy.com/u/faheemhameed)\
**Post date:** [April 21, 2005, 3:39am UTC](https://forum.servoy.com/t/setting-background-for-tab-panels/4076/3 "2005-04-21T03:39:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [April 21, 2005, 6:49am UTC](https://forum.servoy.com/t/setting-background-for-tab-panels/4076/4 "2005-04-21T06:49:08Z")

</div>

Maybe related to my questions here?

> [StyleSheet setting for Tab - Classic Servoy - Servoy Community](http://forum.servoy.com/viewtopic.php?t=4097&highlight=)

Paul

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [April 21, 2005, 8:07am UTC](https://forum.servoy.com/t/setting-background-for-tab-panels/4076/5 "2005-04-21T08:07:07Z")

</div>

> 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.
