Sanjay Yadav Sanjay Yadav - 5 months ago 10
HTML Question

Div height issues , Div height does not cover whole body

I have slider panel ,what i am doing , when my slider open then it's cover all height, but not able to this , when i am going with body overlay hidden then ,height is fixed and full content is not showing,http://polestarllp.com/polestarnew/our-core-values/

body{
background-color:#FFF;
height:100%;
width:100%;
margin:0;
color:#ccc;
font-size:3em;
line-height:100px;
text-align:center;
overflow:hidden;
}
.slidernav{
background:#000;
position:absolute;
width: 100%;
height:100%;
top: 0;
right:-100%;
z-index:9999999999999999999999;
overflow:hidden;
}


html

<html>
<body>
<div class="slidernav"><div>
</html>
</body>

Answer

Instead of overflow:hidden; use overflow-x:hidden;