Is it possible to position two divs side by side, with one of them moving continuously up and down while containing an image?
I attempted the following code:
<div>
<div style="margin:30px;width:100px;height:250px;position:relative;float:left;background-color:red;">A</div>
<div style="margin:30px;width:100px;height:50px;position:relative;float:left;background-color:blue;">B</div>
</div>
Is there a way to make the B div move up and down?