HTML:
<div style="width:200px;height:200px;background:yellow;position:relative">
<span class="hover-content">
<span>+</span>
</span>
</div>
CSS:
.hover-content{position:absolute;display:none}
div:hover .hover-content{display:block}
The div's width and height are dynamic, being changed by javascript-events. My goal is to make the +
sign appear at the center of the div, no matter how it changes. I wonder if this can be done by mere CSS.
JSfiddle:http://jsfiddle.net/1pwww691/