Hello, I can not make out how to make the same effect as here when hovering over the product, I tried using the css sign ~ having one parent, but I realized that this option would not work for me, or I didn’t realize it.
Here's what I got:
HTML:
<div class="items"> <div class="item"> <h1>заголовок</h1> </div> <div class="info"> Доп. Инфо </div> </div> <div class="items"> <div class="item"> <h1>заголовок</h1> </div> <div class="info"> Доп. Инфо </div> </div>
CSS:
.items { width:224px; float:left; } .item { width:160px; height: 230px; display:block; border:1px solid gray; float:left; } .info { display:none; float:right; width:60px; height:230px; border:1px solid gray; } .item:hover~.info,.info:hover { display:block; }
Interests The Effect Additional Space When Hovering
It seems that something turned out to http://jsfiddle.net/H3GmR/1/, if anyone has better options, or who sees crutches / jambs and other information please, and then close the question.