Background image on CTabItem tab [message #667561] |
Fri, 29 April 2011 14:34 |
Andrei Shabalin Messages: 7 Registered: April 2011 |
Junior Member |
|
|
Hello. I have my custom style for CTabFolder and its items like this:
CTabFolder.editorTab {
background-color: rgb( 255, 255, 255 );
border: 1px solid rgb( 127, 155, 207 );
color: black;
padding: 2px;
}
CTabItem.editorTab:selected {
background-color: rgb( 255, 255, 255 );
color: black;
background-image:none;
}
CTabItem.editorTab:hover {
background-image: url( resources/images/view/bg_tab_hover.gif );
color: black;
}
CTabItem.editorTab {
background-image: url( resources/images/view/bg_tab_unactive.gif );
color: black;
}
I dont know why, but unselected items doesnt have the background image on tabs. If I set the background image to the CTabItem.editorTab:selected it works properly and background image is presented.
Also hover image doesnt shown too.
How can I set the background image on unselected CTabItem tab?
[Updated on: Tue, 03 May 2011 12:06] Report message to a moderator
|
|
|
Re: Backgorund image on CTabItem tab [message #667593 is a reply to message #667561] |
Fri, 29 April 2011 19:11 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Andrei,
which version of RAP are you using?
Best,
Ivan
On 4/29/2011 5:34 PM, Andrei Shabalin wrote:
> Hello. I have my custom style for CTabFolder and its items like this:
>
>
>
> CTabFolder.editorTab {
> background-color: rgb( 255, 255, 255 );
> border: 1px solid rgb( 127, 155, 207 );
> color: black;
> padding: 2px;
> }
>
> CTabItem.editorTab:selected {
> background-color: rgb( 255, 255, 255 );
> color: black;
> background-image:none;
> }
>
> CTabItem.editorTab:hover {
> background-image: url( resources/images/view/bg_tab_hover.gif );
> color: black;
> }
>
> CTabItem.editorTab {
> background-image: url( resources/images/view/bg_tab_unactive.gif );
> color: black;
> }
>
>
> I dont know why, but unselected items doesnt have the background image
> on tabs. If I set the background image TabItem.editorTab:selected it
> works properly and background image is presented. Also hover image
> doesnt shown too.
>
> How can I set the backgorund image on unselected CTabItem tab?
>
>
>
>
>
>
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10285 seconds