vega
Apr 23rd, 2009, 05:05 PM
I've been stuck trying to figure out why the background color of my tabs change back to a default green color.
Check out my site here (http://www.freshbasilcrew.com), it is a wordpress blog. I am talking about the 4 tab div on the right side column.
here is the html code for that section:
<div id="sidebar-tabs">
<h3 style="margin:10px 10px 5px 10px;">Songs We Posted Recently / HOT ****</h3>
<div id="mostPopWidget2">
<div id="tabsContainer">
<ul class="tabs">
<li class="selected mpw1"><a href="#">Electro/Dance</a></li>
<li class="mpw2"><a href="#">Hip-Hop</li>
<li class="mpw3"><a href="#">Soul/Funk/Disco</a></li>
<li class="mpw4"><a href="#">Pop/R&B</a></li>
</ul>
</div>
<div class="tabContent tabContentActive" id="electro">
<ol>
<?php $posts = get_posts("numberposts=5&cat=27&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<div class="tabContent" id="hiphop">
<ol>
<?php $posts = get_posts("numberposts=5&cat=28&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<div class="tabContent" id="soulfunkdisco">
<ol>
<?php $posts = get_posts("numberposts=5&cat=29&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<div class="tabContent" id="poprb">
<ol>
<?php $posts = get_posts("numberposts=5&cat=30&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<script type="text/javascript">new Popular("mostPopWidget2");</script>
</div>
</div>
here is all the related css:
#sidebar-tabs ul.tabs {
display: block;
padding: 0;
margin-left: 10px;
white-space: nowrap;
text-transform: uppercase;
z-index: 5500;
/*\*/ vertical-align: middle;/*\*/
font-family: Arial, Helvetica, sans-serif;
}
#sidebar-tabs ul.tabs li {
margin: 0;
display: block;
float: left;
background-color: #ccff99;
border: 1px solid #ccc;
border-width: 1px 1px 1px 0;
white-space: nowrap;
padding: 4px 7px 3px 7px;
z-index: 6000;
background-image: none;
}
#sidebar-tabs ul.tabs li.selected {
background-color: #fff;
border-bottom: none;
z-index: 9998;
padding: 4px 7px 4px 7px;
}
#sidebar-tabs div.tabContent {
clear: both;
border-top:1px solid #ccc;
padding: 15px;
_padding: 15px 15px 15px 15px;
margin: 0;
display: none;
}
#sidebar-tabs div.tabContent.tabContentActive {
display: block;
}
#sidebar-tabs div.tabContent ol {
margin-top: 0;
margin-bottom: 5px;
}
#sidebar-tabs div.tabContent ol li {
_padding-left: 0;
padding-top: 2px;
padding-bottom: 2px;
}
#sidebar-tabs div.tabContent ul {
margin-top: 0;
margin-bottom: 5px;
}
#sidebar-tabs div.tabContent ul li {
_padding-left: 0;
padding-top: 2px;
padding-bottom: 2px;
}
/* Most Popular Module */
#tabsContainer, #mostPopWidget2 {
position: relative;
top: 1px;
_top: 0;
left: 0px;
_left: 0;
_height: 14px;
_padding-top: 6px;
display: block;
}
#mostPopWidget2 ul.tabs {
font-size: 10px;
_position: absolute;
top: 0; margin-left:5px;
}
#mostPopWidget2 ul.tabs li {
position: relative;
top: 0;
padding-left: 4px;
padding-right: 5px;
_padding-bottom: 2px;
}
/*different colors for different tabs*/
#mostPopWidget2 ul.tabs li.mpw1 {}
#mostPopWidget2 ul.tabs li.mpw2 {background-color:#7bb345;}
#mostPopWidget2 ul.tabs li.mpw3 {background-color:#f5aa38;}
#mostPopWidget2 ul.tabs li.mpw4 {background-color:#00aef0;}
#mostPopWidget2 ul.tabs li.selected {
_padding-bottom: 3px;
}
#mostPopWidget2 ul.tabs li:first-child {
border-left-width: 1px;
padding-left: 4px;
}
#mostPopWidget2 ul.tabs li a {
color: #333333;
}
#mostPopWidget2 ol li {
padding-left:2px;
margin-left:25px;
list-style-type: decimal;
line-height:115%;
}
#mostPopWidget2 ul li {
padding-left:2px;
margin-left:25px;
list-style-type:square;
line-height:115%;
}
#mostPopWidget2 img { display:none;}
any ideas on whats going wrong? any help would be greatly appreciated. thanks.
Check out my site here (http://www.freshbasilcrew.com), it is a wordpress blog. I am talking about the 4 tab div on the right side column.
here is the html code for that section:
<div id="sidebar-tabs">
<h3 style="margin:10px 10px 5px 10px;">Songs We Posted Recently / HOT ****</h3>
<div id="mostPopWidget2">
<div id="tabsContainer">
<ul class="tabs">
<li class="selected mpw1"><a href="#">Electro/Dance</a></li>
<li class="mpw2"><a href="#">Hip-Hop</li>
<li class="mpw3"><a href="#">Soul/Funk/Disco</a></li>
<li class="mpw4"><a href="#">Pop/R&B</a></li>
</ul>
</div>
<div class="tabContent tabContentActive" id="electro">
<ol>
<?php $posts = get_posts("numberposts=5&cat=27&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<div class="tabContent" id="hiphop">
<ol>
<?php $posts = get_posts("numberposts=5&cat=28&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<div class="tabContent" id="soulfunkdisco">
<ol>
<?php $posts = get_posts("numberposts=5&cat=29&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<div class="tabContent" id="poprb">
<ol>
<?php $posts = get_posts("numberposts=5&cat=30&orderby=post_date&order=DESC"); foreach($posts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<script type="text/javascript">new Popular("mostPopWidget2");</script>
</div>
</div>
here is all the related css:
#sidebar-tabs ul.tabs {
display: block;
padding: 0;
margin-left: 10px;
white-space: nowrap;
text-transform: uppercase;
z-index: 5500;
/*\*/ vertical-align: middle;/*\*/
font-family: Arial, Helvetica, sans-serif;
}
#sidebar-tabs ul.tabs li {
margin: 0;
display: block;
float: left;
background-color: #ccff99;
border: 1px solid #ccc;
border-width: 1px 1px 1px 0;
white-space: nowrap;
padding: 4px 7px 3px 7px;
z-index: 6000;
background-image: none;
}
#sidebar-tabs ul.tabs li.selected {
background-color: #fff;
border-bottom: none;
z-index: 9998;
padding: 4px 7px 4px 7px;
}
#sidebar-tabs div.tabContent {
clear: both;
border-top:1px solid #ccc;
padding: 15px;
_padding: 15px 15px 15px 15px;
margin: 0;
display: none;
}
#sidebar-tabs div.tabContent.tabContentActive {
display: block;
}
#sidebar-tabs div.tabContent ol {
margin-top: 0;
margin-bottom: 5px;
}
#sidebar-tabs div.tabContent ol li {
_padding-left: 0;
padding-top: 2px;
padding-bottom: 2px;
}
#sidebar-tabs div.tabContent ul {
margin-top: 0;
margin-bottom: 5px;
}
#sidebar-tabs div.tabContent ul li {
_padding-left: 0;
padding-top: 2px;
padding-bottom: 2px;
}
/* Most Popular Module */
#tabsContainer, #mostPopWidget2 {
position: relative;
top: 1px;
_top: 0;
left: 0px;
_left: 0;
_height: 14px;
_padding-top: 6px;
display: block;
}
#mostPopWidget2 ul.tabs {
font-size: 10px;
_position: absolute;
top: 0; margin-left:5px;
}
#mostPopWidget2 ul.tabs li {
position: relative;
top: 0;
padding-left: 4px;
padding-right: 5px;
_padding-bottom: 2px;
}
/*different colors for different tabs*/
#mostPopWidget2 ul.tabs li.mpw1 {}
#mostPopWidget2 ul.tabs li.mpw2 {background-color:#7bb345;}
#mostPopWidget2 ul.tabs li.mpw3 {background-color:#f5aa38;}
#mostPopWidget2 ul.tabs li.mpw4 {background-color:#00aef0;}
#mostPopWidget2 ul.tabs li.selected {
_padding-bottom: 3px;
}
#mostPopWidget2 ul.tabs li:first-child {
border-left-width: 1px;
padding-left: 4px;
}
#mostPopWidget2 ul.tabs li a {
color: #333333;
}
#mostPopWidget2 ol li {
padding-left:2px;
margin-left:25px;
list-style-type: decimal;
line-height:115%;
}
#mostPopWidget2 ul li {
padding-left:2px;
margin-left:25px;
list-style-type:square;
line-height:115%;
}
#mostPopWidget2 img { display:none;}
any ideas on whats going wrong? any help would be greatly appreciated. thanks.