Delete box y scroll
Hi Jason!
i have my deletebox fixed (position: fixed for .black_overlay and .messageContainer). how can i add only y-scroll when the content is to big?
<style type="text/css">
.black_overlay{
display: none;
position: fixed;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: #000000;
z-index:1001;
-moz-opacity: .2;
opacity: .2;
filter: alpha(opacity=20);
}
.messageContainer {
width: 800px;
height: 800px;
position: fixed;
top: 50%;
left: 50%;
margin:-400px 0 0 -400px; /* [-(height/2)px 0 0 -(width/2)px] */
z-index: 1002;
text-align: center;
display: none;
style="height: 100%;
#position: absolute;
overflow: hidden;
display: none;
}
.messageWrapper {
#position: absolute;
#top: 50%;
display: table-cell;
vertical-align: middle;
}
.messageContent {
background-color:#ffffff;
display: inline-block;
padding: 20px;
z-index:1002;
overflow: auto;
margin: auto;"
#position: relative;
#top: -50%;
}
</style>
Thx for your quick help!