I'm working on a way to display help without the need for dialogs or popups, using CSS.
I have an image within a div, that will transition in size when the image is hovered over, displaying the help content.
I have another div below that one, that is representing the content of the page the help div will be on. Here's my code:
HTML:
<div id="answers" class="answers">
<img src="images/bullet_question.png" height="50" width="50">
</div>
<div class="below">will it push me down?</div>
CSS:
div.answers
{
height: 50px;
width: 50px;
background-color: transparent;
color: #FFF;
z-index: 2;
}
div.answers:hover
{
-webkit-transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
transition: all 1s ease-in-out;
height: 400px;
width: 400px;
background-color: #333;
border: 2px solid #000;
border-top-left-radius: 30px;
z-index: 2;
}
div.below
{
z-index: 1;
}
The question is, how to transform the answer class div, without affecting the below class div; pushing it downward. As you can see, I did some experimenting with z-index to no avail.