javascript - Lush Slider full width and restricted height -


i believe have tried , failing miserably. have been working lush responsive slider , have been having major issues.

to start off took exact code demo , placed in header, had strange padding on bottom , right side removed , thought working fine except height. it's large takes on more half page.

when resized window , reloaded page though background of slider sat in top left corner smaller needed be. responsiveness works if reload @ 100% screen? doesn't make scenes.

also, height bothering me. cannot resize @ , when did put static heights on ul , li of 10em did resize, responsiveness went out window.

i tried post in js fiddle, plugin code crashed without running anything. if can post dev site on it. said used exact html , css demo files took away bit of padding make full width.

any appreciated.

ok, have managed work out solution width issue. problem seems relate initial basewidth, defaults 1140 pixels. playing around

data-base-width="600" , data-base-height="600"  

attributes in first lush slider div tag may see make progress, looks fixed values accepted, no percentages. opted solution seems work, write first div tag using document.write method , programmaticaly set width the clientwidth, such :

<script> document.write('<div id="lushdiv" class="lush-slider autoload shadow-a" data-slider-pause-on-hover="true" data-base-width="' + document.body.clientwidth + '" data-base-height="600" style="background: rgb(229, 229, 229)">'); </script> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -