Hello!
There is a page http://mn27.ru/test.html with a side exit panel. How to place the exit panel in the center of the screen? How to make the picture also be in the center of the VKontakte block?
Hello!
There is a page http://mn27.ru/test.html with a side exit panel. How to place the exit panel in the center of the screen? How to make the picture also be in the center of the VKontakte block?
You can like this:
<style> .panel { width: 300px; margin-top: -145px; /* высота панели деленная на 2 */ } .handle { margin-top: 53px; /* 145 - (высота кнопки деленная на 2) */ } </style> <script type="text/javascript"> $(function() { $('.panel').tabSlideOut({ tabHandle: '.handle', pathToTabImage: 'vk_panel.png', imageHeight: '184px', imageWidth: '36px', tabLocation: 'right', speed: 300, action: 'click', topPos: '50%', /* Позиция сверху */ fixedPosition: true }); }); </script>
Watch here: http://jsfiddle.net/knsqN/1/ .
Source: https://ru.stackoverflow.com/questions/176786/
All Articles