Liza Z
12-19-2013, 06:04 PM
http://www.dynamicdrive.com/dynamicindex17/notifier.htm
I got this new and very usefull script working fine, but there is one question left.
How to center the panel since I set the width 80%? I tried e.g. 'position: center;' or 'center: 0;' ,but that does not work.
Below the part of the script, as I think it matters.
.notify{ /* main notifier container */
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-perspective: 1500px;
-webkit-perspective-origin: 50% 100%;
perspective: 1500px;
perspective-origin: 50% 100%;
width: 100%; /* width of notifier container */
height: 230px; /* height of notifier container */
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,.8);
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
-webkit-transition: all .5s ease-in;
transition: all .5s ease-in;
visibility: hidden;
}
Thank you, Alice in Wonderland
I got this new and very usefull script working fine, but there is one question left.
How to center the panel since I set the width 80%? I tried e.g. 'position: center;' or 'center: 0;' ,but that does not work.
Below the part of the script, as I think it matters.
.notify{ /* main notifier container */
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-perspective: 1500px;
-webkit-perspective-origin: 50% 100%;
perspective: 1500px;
perspective-origin: 50% 100%;
width: 100%; /* width of notifier container */
height: 230px; /* height of notifier container */
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,.8);
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
-webkit-transition: all .5s ease-in;
transition: all .5s ease-in;
visibility: hidden;
}
Thank you, Alice in Wonderland