Nope, it shouldn't matter where that rule is placed. However, I've come across a couple of subtle issues that you need to be aware of in order for it to work properly. Firstly, the !important declaration should be suffixed to the "height" property defined within ".tabcontentiframe", for example:
Code:
.tabcontentiframe{
height: 500px !important;
}
This is needed because by default there is already an inline CSS "height" property added to the IFRAME generated by this script:
Code:
<iframe src="about:blank" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" class="tabcontentiframe" style="width:100%; height:auto; min-height: 100px"></iframe>
Since inline styles always trumps external styles, you need to throw in an "!important" to the external CSS rule to override it.
Secondly, even with the above CSS added, you may not see any effect on the IFRAME height. This can occur if the DIV container that holds your Tab Contents also has an explicit height declared, as seen in Demo #3 on the script page:
Code:
<div id="petsdivcontainer" style="border:1px solid gray; width:550px; height: 150px; padding: 5px; margin-bottom:1em">
</div>
The way that CSS works, this height trumps any heights declared for its child elements. In that case, you may need to adjust the height of the Tab Content DIV as well.
Bookmarks