<style type="text/css"> .straightBarWrapper { background: url(); } .straightBarNormalTab, .straightBarActiveTab, .straightBarMouseOverTab { width: 100px; } .straightBarWrapperInnerTable { margin: 0 auto; background: transparent url(BACKGROUND IMAGE URL); } </style>
<script type="text/javascript"> $(document).ready(function(){ var tabwidth = 100; // Don't change anything below // *********************** $('.straightBarWrapperInnerTable').css({'background-image' : $('.straightBarWrapper').css('background-image'), margin: '0 auto' }); $('.straightBarWrapper, .straightBarSpacer').css('background-image','url()'); $('.straightBarNormalTab, .straightBarActiveTab, .straightBarMouseOverTab').css('width',tabwidth); }) </script>
.straightBarWrapperInnerTable { margin: 0 auto; width: 100%; } .straightBarWrapperInnerTable a { font-size: 22px; } .straightBarNormalTab, .straightBarActiveTab, .straightBarMouseOverTab { width: 20%; }
100 / number of tabs
<script type="text/javascript"> $(document).ready(function(){ var t = $('.straightBarWrapperInnerTable').find('td').length; $('.straightBarNormalTab, .straightBarActiveTab, .straightBarMouseOverTab').css('width', 100/t + '%'); }) </script>
<script type="text/javascript"> $(document).ready(function(){ var t = $('.straightBarWrapperInnerTable').find('td').length; $('.straightBarNormalTab, .straightBarActiveTab, .straightBarMouseOverTab').css('width', 100/t + '%'); }) </script> In the header and footer worked except when I go to the site as a public user. Please help me.
.straightBarWrapperInnerTable { width: 100%; }