Hi folks,
I'm new to GWT (but I read the tutorial). I need to give my tabs a
different color, and this is what I see in my firebug:
.gwt-TabBar .gwt-TabBarItem {standard.css (line 870)
background:#D0E4F6 none repeat scroll 0%;
color:black;
cursor:pointer;
font-weight:bold;
margin-left:6px;
padding:3px 6px;
text-align:center;
}
.gwt-TabBar-Into .gwt-TabBarItem {main.css (line 55)
background:#EEEEEE none repeat scroll 0%;
color:#6F6F6F;
}
so the standard css background and color are overriding my locally
defined attrs in main.css.
Is it due to a bad configuration? or is it the way it is supposed to
work?
I added a style to the tab bar:
mainTabPanel.getTabBar().addStyleDependentName("Into");
But this doesn't affect each tab (I was also expeting a method such as
addChildrenStyleDependentName() )...
The only solution I found is to call setStylePrimaryName() and copy
all subsequent styles : for the tabbar, the bar, the items... from
standard.css changing only the colors: I don't think GWT was designed
this way...
Anyway, any help is very welcome.
Regards,
Zied Hamdi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---