css - Can't display full heigh when absolute positioning used -
i have popup on mosueover. when placed in div absolute positioning, part of popup shows. jsfiddle here. follow-up question here. when posted question, didn't realize code used in div has absolute positioning. in fix posted in thread, can see popup displays fine. differences between , new code addition of 2 surrounding div's. have height settings of 220px , see that limiting popup don't see how fix it. initial height settings need stay can't remove or change them. that, please?
<style> #ds-holder { position: relative; margin: 0 auto; width: 300px; height: 220px; overflow: hidden; } .ds-container { top: 0px; left: 0px; width: 140px; height: 220px; position: absolute; overflow: hidden; } #dsspan{ background: none repeat scroll 0 0 #f8f8f8; border: 5px solid #dfdfdf; color: #717171; font-size: 13px; height: auto; width: auto; letter-spacing: 1px; line-height: 30px; margin: 0 auto; position: absolute; text-align: center; text-transform: uppercase; top: 80px; left:30px; display:none; padding:0 20px; } #dsspan:after{ content:''; position:absolute; bottom:-10px; height:0px; } .ds {border:1px solid red} .ds:hover #dsspan { display:block; } </style> <div id="ds-holder"> <div class="ds-container"> <div class="ds"> <span id="dsspan"> line longer rest. <ul> <li>text</li> <li>text</li> <li>text</li> <li>text</li> <li>text</li> </ul> </span> <a href="example.com">hover here</a> </div> </div> </div>
you can try
in absolute position use left: 0 , right: 0 make full width.
Comments
Post a Comment