Grazie ancora per l'aiuto ho applicato un display none e funziona tt.. un ultima cosa poi la smetto di rompere
(almeno lo spero
)
ho la seguente struttura:
Codice PHP:
<table class="article">
<tr>
<td class="articlesTab">
<div id="headerTab">
<ul class="vert-one"> [*][url="#"]Titolo 1[/url] [*][url="#"]Titolo2[/url][/list]
</div>
<div id="contentTab">
<div class="tabs" id="1" >
<h2>[url="articolo.html"]Titolo 1[/url]</h2>
<p class="testo">Testo Testo Testo</p>
</div>
<div class="tabs" id="2" style="display:none">
<h2>[url="articolo.html"]Titolo 2[/url]</h2>
<p class="testo">Testo Testo Testo</p>
</div>
</div>
</td>
</tr>
</table>
questo è il css
Codice PHP:
.article {
width: 100%;
}
.articlesTab {
border: solid 1px #c8c8c8;
background: #FFFFFF;
font: 12px Arial, Verdana, Tahoma, sans-serif;
text-align: left;
width: 100%;
height: auto;
}
.articlesTab #contentTab {
width: 70%;
float: right;
}
.articlesTab #contentTab p, .articlesTab #contentTab h2 {
margin-left: 20px;
margin-right: 25px;
}
.articlesTab #contentTab div {
text-align: justify;
}
.articlesTab #headerTab {
float: left;
height: 100%;
border-right: solid 1px #c8c8c8;
}
.articlesTab ul.vert-one {
margin:0;
padding:0;
list-style-type: none;
display: block;
font:bold 12px Helvetica, Verdana, Arial, sans-serif;
line-height: 20px;
width: 180px;
}
.articlesTab ul.vert-one li {
margin:0;
padding:0;
border-bottom:1px solid #c8c8c8;
}
.articlesTab ul.vert-one li a {
display:block;
text-decoration:none;
color: #006f9f;
background: #f2f2f2;
padding:0 0 0 20px;
width:160px;
}
.articlesTab ul.vert-one li a:hover {
background: #006f9f;
color: #ffffff;
}
.articlesTab ul.vert-one li a.current,ul.vert-one li a.current:hover {
background: #006f9f;
}
Il tabulatore è su due colonne. Io vorrei che il div con id="headerTab" fosse alto quanto tutta la cella e quando si allunga, perchè il testo sulla destra è + lungo del menu, si allunghi anche la riga.