0

i've noticed that on ie whenever i hover the mouse pointer click a selected tab and then move onto the second, both tabs are 'active' rather than the one tab i have shifted focus away from resetting to default. this leads to all my tabs lighting up as active which is rather confusing. funnily enough i don't have this problem on chrome. any workarounds? thanking you in advance!

<script type="text/javascript"> 
$(document).ready(function(){
$('#tabs div').hide();
$('#tabs div:first').show();
$('#tabs ul li:first').addClass('active');
$('#tabs ul li a').click(function(){ 
$('#tabs ul li').removeClass('active');
$(this).parent().addClass('active'); 
var currentTab = $(this).attr('href'); 
$('#tabs div').hide();
$(currentTab).show();
return false;
});
});
</script>
<style type="text/css">
* {
    padding: 0;
    margin: 0;
}
html, body {
    height: 100%;
    width: 100%;
    background-image:url(main_bg.png);
}
body {
    font-family: "lucida sans", verdana, arial, helvetica, sans-serif;
    font-size: 75%;
}
h1 {
    font-size: 1.4em;
    padding: 10px 10px 0;
}
p {
    padding: 0 10px 1em;
}
#container {
    min-height: 100%;
    border-left: 0px solid #666;
    border-right: 0px solid #666;
    padding: 0px 40px 0px 40px;
    margin: 0 auto;
}
* html #container {
    height: 100%;
}
#header {
    height: 40px;
    width: 100%;
    padding-top: 10px;
}
.header_column {
    position: absolute;
    padding-top: 0px;
}
#header_second {
    margin-left: 50%;
    color:#FFF;
}
#header_third {
    margin-left: 80%;
    color:#FFF;
}
#body {
    height: 100%;
    width: 100%;
}
.body_column {
    position: absolute;
    background-color:#FFF;
    height: 100%;
    overflow: auto;
}
#body_first {
    width: 22%;
    background-color: transparent;
    height: 640px;
    margin-top: 10px;
}
#body_second {
    margin-left: 170px;
    width: 36%;
    background-color:#FFF;
    height: 640px;
}
#body_third {
    margin-left: 58%;
    width: 36%;
    border: 1px;
    background-color: #919191;
    height: 640px;
}
#footer {
    padding-top: 50%;
}
#tabs {
    font-size: 90%;
    margin-top: 0px;
    margin-right: 0;
    margin-bottom: 20px;
    margin-left: 6px;
    width: 170px;
}
#tabs ul {
    float: left;
    width: 170px;
    height: 35px;
    padding-top: 5px;
    background: -webkit-gradient(linear, 0 0, 0 60%, from(#666769), to(#464445));
    background: -moz-linear-gradient(#666769, #464445 60%);
    background: linear-gradient(#666769, #464445 60%);
    -pie-background: linear-gradient(#666769, #464445 60%);
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    behavior: url(PIE.htc);
}
#tabs li {
    margin-left: 4px;
    list-style: none;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    behavior: url(PIE.htc);
}
* html #tabs li {
    display: inline;
    background: -webkit-gradient(linear, 0 0, 0 70%, from(#b8b8b8), to(#8c8c8c));
    background: -moz-linear-gradient(#b8b8b8, #8c8c8c 70%);
    background: linear-gradient(#b8b8b8, #8c8c8c 70%);
    -pie-background: linear-gradient(#b8b8b8, #8c8c8c 70%);
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    behavior: url(PIE.htc);
}
#tabs li, #tabs li a {
    float: left;
        background: -webkit-gradient(linear, 0 0, 0 70%, from(#b8b8b8), to(#8c8c8c));
    background: -moz-linear-gradient(#b8b8b8, #8c8c8c 70%);
    background: linear-gradient(#b8b8b8, #8c8c8c 70%);
    -pie-background: linear-gradient(#b8b8b8, #8c8c8c 70%);
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    behavior: url(PIE.htc);
}
#tabs ul li.active {
    background: -webkit-gradient(linear, 0 0, 0 70%, from(#e8e8e8), to(#fcfcfc));
    background: -moz-linear-gradient(#e8e8e8, #fcfcfc 70%);
    background: linear-gradient(#e8e8e8, #fcfcfc 70%);
    -pie-background: linear-gradient(#e8e8e8, #fcfcfc 70%);
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    behavior: url(PIE.htc);
}
#tabs ul li.active a {
    background: -webkit-gradient(linear, 0 0, 0 70%, from(#e8e8e8), to(#fcfcfc));
    background: -moz-linear-gradient(#e8e8e8, #fcfcfc 70%);
    background: linear-gradient(#e8e8e8, #fcfcfc 70%);
    -pie-background: linear-gradient(#e8e8e8, #fcfcfc 70%);
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    behavior: url(PIE.htc);
}
#tabs div {
    clear: both;
    padding: 15px;
    width: 170px;
}
#tabs div h3 {
    margin-bottom: 12px;
}
#tabs div p {
    line-height: 150%;
}
#tabs ul li a {
    text-decoration: none;
    padding: 8px;
    color: #000;
    font-weight: bold;
}
.thumbs {
    float:left;
    border:#000 solid 1px;
    margin-bottom:20px;
    margin-right:20px;
}
#tabs ul li a:hover {
    background: -webkit-gradient(linear, 0 0, 0 70%, from(#e8e8e8), to(#fcfcfc));
    background: -moz-linear-gradient(#e8e8e8, #fcfcfc 70%);
    background: linear-gradient(#e8e8e8, #fcfcfc 70%);
    -pie-background: linear-gradient(#e8e8e8, #fcfcfc 70%);
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    behavior: url(PIE.htc);

}
-->
</style>
3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by shaya4207
0

Would you have a live example that we could see online? It would be much easier to elaborate on if I could test it in person.

0

i've noticed that on ie whenever i hover the mouse pointer click a selected tab and then move onto the second, both tabs are 'active' rather than the one tab i have shifted focus away from resetting to default. this leads to all my tabs lighting up as active which is rather confusing. funnily enough i don't have this problem on chrome. any workarounds? thanking you in advance!

First of all the fact that IE has a problem and Chrome doesn't is not funny at all, it's something that happens all the time, and is actually quite sad...

Second, please post either the html, or a link where we can see what actually happens (like what 'pixelsoul' said)...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.