4 ms·
You are correct, it is off by the height of the bar at the bottom of the window. It uses fixed positioning -- not absolute positioning as was prescribed in the
by systemtrigger 13y ago
You are correct, it is off by the height of the bar at the bottom of the window. It uses fixed positioning -- not absolute positioning as was prescribed in the hack. Also he sets the modal height to 50%. The CSS of the demo is not the CSS of the write-up.
- enyaboi 13y agoThis !!!! You can also do this position: relative; margin-top: 50%; transform: translateY(-50%);
- systemtrigger 13y agoYou can, if you don't mind it breaking in IE < 9.