This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Button with Text
#1
Hi,

How can I use a text over a button and use the link of the button over the text ?
The text does not allow the link of the button below (If I click out of the text the button works properly).

BR,
Alberto
KNX Advanced Partner + Tutor
Reply
#2
Add to Custom JS and use text-inside Additional class.
Code:
$(function(){
  $('.text-inside').each(function(_, el) {
    var $el = $(el);
    var height = $el.find('.icon').height();
    
    $el.find('.value').css({
      position: 'absolute',
      top: 0,
      left: 0,
      width: '100%',
      'line-height': height + 'px',
      'pointer-events': 'none',
    });
  });
});
Reply


Forum Jump: