I want to make a block that expands down giving party information and events, but I'm having a lot of trouble, because I do not know how to make 2 div
s activate mouse over at the same time. / p>
this is my html code:
<div id="eventos">
<a href="#"><div class="eventos-blocos">
<img src="eventos/a-traidos.jpg" width="250px" height="100px" />
<p align="left">25/02/2014</p><br />
<h3 align="left">A-TRAIDOS</h3>
</div></a>
</div>
And that's the CSS code:
#eventos{
width:810px;
height:500px;
background:#666;
float:left;
}
.eventos-blocos{
width:250px;
height:100px;
float:left;
background-color:#CCC;
margin:8px;
border:2px solid #FFF;
transition:all 700ms;
-moz-transition:all 700ms;
-o-transition:all 700ms;
-webkit-transition:all 700ms;
position:relative;
top:0px;
left:0px;
}
.eventos-blocos:hover{
border:2px solid #0C9;
height:150px;
}
.eventos-blocos p{
font-family:Tahoma, Geneva, sans-serif;
font-size:10px;
color:#FFF;
animation-direction:alternate;
margin-bottom:-20px;
margin-left:3px;
margin-top:3px;
}
.eventos-blocos h3{
font-family:Tahoma, Geneva, sans-serif;
font-size:14px;
color:#FFF;
margin:3px;
}
When div
is triggered by mouseover the div
below always goes too far, looking like a bug.