Menu with tabs with jQuery
Hi,
I want to navigate the tabs:
But when I click on "Description" or "Content" it goes like this and does not come back:
Part of the code in php:
- <script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
- <script type="text/javascript" src="js/abas.js"></script>
Another part of the code in php:
- <section id="abas-geral">
- <ul class="menu">
- <li><a href="aba01">Description</a></li>
- <li><a href="aba02">Content</a></li>
- </ul>
- <section id="box">
- <div id="aba01" class="conteudo">
- <article id="descricao">
- <h5>Description</h5>
- <p>
-
- Test Content
- </p>
- </article>
- </div>
- </section>
Css file code:
- #abas-geral{
- width: 680px;
- margin: 10px auto;
-
- }
- ul.menu{
- margin:0;
- padding:0;
- float: left;
- list-style:none;
- height: 32px;
- border-bottom:1px solid #999;
- width: 100%;
- }
- ul.menu li {
- float: left;
- margin:0;
- padding:0;
- height:31px;
- line-height:31px;
- border: 1px solid#999;
- border-left:none;
- margin-bottom:-1px;
- background: e0e0e0;
- overflow:hidden;
- position:relative;
- }
- ul.menu li a {
- text-decoration:none;
- color: #000;
- display:block;
- font-size:1.2em;
- padding:0 20px;
- border: 1px solid #FFF;
- outline: none;
-
- }
- ul.menu li a:hover {
- background: #66ccff;
- }
- ul.menu li.active, ul.menu li.active a:hover{
- background: #FFF;
- border-bottom:1px solid #FFF;
- }
- #box{
- text-align: left;
- border: 1px solid #999;
- border-top: 5px;
- clear: both;
- float: left;
- width: 669px;
- background: #fff;
- padding-left: 4px;
- padding-right: 7px;
- }
Tab file that I am using: