- Posts: 32
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).on('ready pjax:scriptcomplete',function() { // Add/remove classes $('.slider-left, .slider-right').removeClass('col-sm-2 col-sm-4 col-sm-6 col-sm-8 col-sm-10 col-xs-6 col-xs-12 text-right text-left visible-xs-block'); $('.slider-container').removeClass('col-sm-2 col-sm-4 col-sm-6 col-sm-8 col-sm-10'); $('.slider-item').addClass('custom-text-location'); $('.slider-left, .slider-right').addClass('slider-text'); // Move slider left/right text $('.slider-item').each(function(i) { $('.slider-left', this).after($('.slider-right', this)); $('.slider-right:gt(0)', this).remove(); }); });
.slider-item.custom-text-location .slider-left { float: left; width: 20%; min-width: 100px; text-align: left; } .slider-item.custom-text-location .slider-text { width: 20%; min-width: 100px; } .slider-item.custom-text-location .slider-left { float: left; text-align: left; } .slider-item.custom-text-location .slider-right { float: right; text-align: right; } .slider-item.custom-text-location .slider-container { clear: both; margin-top: 3em; }
You can hide label part and set total with to 100% for slider partAlbinux wrote: …
3) How to align these same portions of text in a centered way rather than "right aligned"?
…