LogicMachine Forum
Button with Text - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: OLD visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Button with Text (/showthread.php?tid=5322)



Button with Text - toujour - 25.03.2024

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


RE: Button with Text - admin - 25.03.2024

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',     });   }); });