![]() ![]() Here is another example –, or the one with sidebar Example of how to resize slider via JS in WordPress version autoScaleSlider and autoHeight options are in "Size & Scaling section".Īnother approach is to apply size manually via JavaScript in window.resize event. If you're using WordPress version, you should add !important to width and height to override default width/height styling that is added via style tag. ![]() Height: auto /* optionally add !important for WP version so it overrides default value */Īlso, you need to make sure that autoScaleSlider and autoHeight options are set to false (as they will scale height of slider). * stretch slider to 100% width and height */īottom: 50px /* height of thumbs (if not required set to 0) */ Overflow:hidden /* to avoid scrollbars */ To make it full size of a window, make sure that all parent containers of the slider (including body and html) are already stretched (have 100% width and height).ĬSS: /* make "parent" containers 100% width and height */ Slider behaves and can be resized like any other block element with unknown HTML inside.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |