First, try adding a couple more 9's to your z-index. Just kidding, that won't work because pseudo-elements like :hover
create a new stacking index. As a result, no solution involving z-index
will work, which is almost invariably the case.
The solution here actually is absolute positioning. If you set .circle-pic
to position: relative
and .infohover
to position: absolute
, the hidden section will be positioned relative to the parent with no impact on the rest of the page.
Happy to help further if this doesn't solve the problem -- not quite sure I understood what was wrong originally.
.infohover {
display: none;
background-image:url('/wp-content/uploads/2014/03/popup_bg_bubble.png');
background-repeat: no-repeat;
font-family: "proxima-nova";
font-size: 16pt;
color: #8d0057;
height: 350px;
width: 640px;
padding: 20px;
padding-left: 50px;
/* z-index: 999; */
/* margin-left: 350px; */
/* margin-top: -380px; */
text-align: left;
position: absolute;
top: 0;
left: 350px;
}
a:hover~.infohover {
display: block;
}
.circle-pic {
position: relative;
/* z-index: -1; */
}
.meet-section {
/* z-index: -1; */
}