I'm trying to use a dijit/layout/TabContainer
with a modified dijit theme. I need to modify some of the styling of the TabContainer
tabs such as the padding of the tabs, boldness, etc. However the styling commands specific to the pages that use the TabContainer
are not working.
This piece of code is on my home page's CSS file.
.myTheme .homeTabContent
{
font-weight: bold !important;
}
.myTheme .homeTabContent .dijitTab /* The .dijitTab is the original CSS class of the tab*/
{
font-weight: bold !important;
padding-left: 3px !important;
padding-right: 3px !important;
}
The tabs' padding and font-weight remain unchanged despite the !important
. Editing the TabContainer
CSS file in myTheme
isn't a practical solution because I that will just mess up the styling of a different page. What happens is that as I load the page with the styling, my commands appear to be working for a split second, however all of that is undone when the TabContainer
finishes loading. Can anyone tell me why or offer me a solution? Thanks in advance!