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.

CSS to value not icon
#2
Add to Custom JavaScript:
Code:
$(function(){
  $('.limit-text').each(function(index, el) {
    var width = $(el).find('img').css('width')

    if (width) {
      $(el).find('.value')
        .css('width', width)
        .css('overflow', 'hidden')
          .css('text-overflow', 'ellipsis')
    }
  });
});

Then set "Additional classes" to limit-text for each element where text width must be limited to the icon width.
Reply


Messages In This Thread
CSS to value not icon - by savaskorkmaz - 20.02.2024, 10:25
RE: CSS to value not icon - by admin - 20.02.2024, 11:52

Forum Jump: