Now I can do that with CSS, but it works only when the hidden div is a child of a parent. You hover on parent div and set CSS on hover to display the child from none
to block
, something like that.
But how do you do that if the hidden block is outside the div that you hover and the hidden one appears?
Example:
<div class="field-1"></div>
<div class="field-2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tincidunt consequat tristique. Curabitur vestibulum semper nulla id ornare.</div>
JSFiddle http://jsfiddle.net/23u3rmx5/ when you hover over red block the .field-2 must appear below it. You cannot move the div structure, e.g. move .field-2 inside .field-1, I can do that, but that's not the solution.
Thanks for helping and cheers! Have a good weekend!