Power Slider Lite - full width - Responsive - how to
Permalink 2 users found helpful
Hi it's my first post, so if publish in wrong place - correct me
if someone is looking for setup Power Slider Lite to full width and responsive - this is solution
1. setup slider in view.php:
2. in style.css
3. in your own file - function.js
for me it works correct and fine ;)
if someone is looking for setup Power Slider Lite to full width and responsive - this is solution
1. setup slider in view.php:
slideResize: 0,
2. in style.css
.powerSliderShell {position: relative; } .powerSliderContainer { width: auto !important; } .powerSlide { display: block; text-decoration: none; position: relative; width:100%; } .powerSlide img { width:100%!important; height:auto!important; }
3. in your own file - function.js
$( window ).resize(function(){ var resizebaner = $('.powerSlide').height(); $('.powerSliderContainer').css({ 'height' : resizebaner + 'px' }); });
for me it works correct and fine ;)
Thanks for sharing; for those implementing this, you'll need to make sure you don't enter height and size parameters in the block when you edit; just leave the boxes blank.
after use this few months we make some improvments :
there was some problems whene you refresh site - sometimes dosen't work
but after this improvments ( look up ), all work corectly
function resizeImages(){ var resizebaner = $('.powerSlide').height(); $('.powerSliderContainer').css({ 'height' : resizebaner + 'px' }); } $(document).ready(function(){ resizeImages(); }); $(window).load(function(){ resizeImages(); }); $( window ).resize(function(){ resizeImages(); });
there was some problems whene you refresh site - sometimes dosen't work
but after this improvments ( look up ), all work corectly
To submit to the official howto section, go to
http://www.concrete5.org/profile/howtos/post...
Once it is approved as a howto, you can then cross link from this thread.