I have 3 text divs wich should have a hover transition with height. Example here: http://jsfiddle.net/oLr7j7w5/
There is no text in it yet so i was just wanting to give it height:auto; on hover, but if i do that the transition disappears, and it is like this:(i only changed the height from px to auto!) http://jsfiddle.net/xbpqphzz/
does anyone know how i can fix this? heres my code(i deleted the text)
<div id="extrawurstmain">
<div id="tcontent">
<a class="font" id="ttext">
</a>
</div>
<div id="mcontent">
<a class="font" id="mtext">
</a>
</div>
<div id="bcontent">
<a class="font" id="btext">
</a>
</div>
#tcontent{
float: left;
background-color: rgba(105, 105, 105, 0.5);
border-bottom: 3px solid #FFD000;
height: 150px;
width: 100%;
margin-top: 100px;
transition: height 0.5s ease;
overflow: hidden;
}
#mcontent{
float: left;
background-color: rgba(105, 105, 105, 0.5);
border-bottom: 3px solid #FFD000;
width: 100%;
height: 150px;
transition: all 0.5s ease;
overflow: hidden;
position: relative;
transition: all 0.5s ease;
}
#bcontent{
float: left;
background-color: rgba(105, 105, 105, 0.5);
border-bottom: 3px solid #FFD000;
width: 100%;
height: 150px;
transition: height 0.5s ease;
overflow: hidden;
}
#tcontent:hover{
height: 250px;
}
#mcontent:hover{
height: 250px;
}
#bcontent:hover{
height: 250px;
}
#ttext{
color: blue;
}
#mtext{
color: green;
}
#btext{
color: yellow;
}