i am making a web application and trying to make some nice tabs. The thing is i can't make the tabs show its content when they are active (if tab1 show content1) but without the bottom-border of the tab, classic tabs. With this i mean by switching to tab2, to make the bottom border of tab1 to appear and make disappear the bottom border of the tab2 and so on. I dont know if its clear enough its harder to explain than the thing i want to do itself. Here is my code where im having trouble with it...
HTML
<div id="principal" class="wrapper">
<h2 class="subtitulo">Mis videos!</h2>
<ul id="pestanas">
<li class="active"><a href="#" onclick="mostrarInicio()">Inicio</li>
<li><a href="#" onclick="mostrarVideos()">Todos los videos</li>
</ul>
<div id="videoDestacado" class="active">
<iframe width="420" height="345"
src="http://www.youtube.com/embed/h6k5qbt72Os">
</iframe>
</div>
<div id="todosVideos">
Aca hay un contenido
</div></div>
CSS
#principal ul {
list-style: none;
padding:0;
margin:0;
}
#principal li {
float: left;
border: 1px solid;
border-bottom: none;
/*border-bottom-width: 0;*/
margin: 0 0.5em 0 0;
}
#principal li a {
padding: 0 1em;
}
#active {
position: relative;
top: 1px;
background: black;
padding-bottom: 0px;
border-bottom: none;
}
JS/JQuery
function mostrarVideos(){
$("#todosVideos").show();
$("#videoDestacado").hide();
$("ul#pestanas li a").removeClass("active"); // desactivamos todas las pestaƱas
$(this).addClass("active");
}
function mostrarInicio(){
$("#todosVideos").hide();
$("#videoDestacado").show();
$("#pestanasPG li a").removeClass("active"); // desactivamos todas las pestaƱas
$(this).addClass("active");
}