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
#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


Messages In This Thread
Button with Text - by toujour - 25.03.2024, 09:59
RE: Button with Text - by admin - 25.03.2024, 10:11

Forum Jump: