Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to get an extra wrapper div around the slider-bubble value element?... so it makes it nice and easy to center it perfectly above the slider handle (regardless of the value). My code looks like this...
JS
var bubble = $('<div class="sliderfield-bubble-wrapper"><div class="sliderfield-bubble">' + bubble_value + '</div></div>');
CSS
.sliderfield-bubble-wrapper {
float: right;
right: 50%;
position: relative;
}
.sliderfield-bubble {
float: right;
right: -50%;
position: relative;
}
Unless of course this can be achieved without the additional div, but I just cant seem to find a way to do that.
Thanks
Comments
Comment #1
sinasalek CreditAttribution: sinasalek commentedIt doesn't hurt to add a container , i'll consider it for the next release
Comment #2
sinasalek CreditAttribution: sinasalek commentedIt's done
Comment #3
sinasalek CreditAttribution: sinasalek at Practicalidea commented