-
AuthorPosts
-
November 27, 2020 at 10:42 am #1263483
Hi,
I use the left column in a table as the “label column”. All other columns are “standard columns”. If longer entries are to be found in the “Standard Columns”, the entries in the “Label Column” no longer fit because the height does not “grow with”.
The content of the “Label Column” must therefore always be as large / high as the content of the “Standard Column”. I can imagine that this is not wanted because it would make no sense.
An example is shown on my website. I sent the link with access data as “private content”. See line “Domains inklusive” and the entrie after “Addon-Domains inklusive (…) what does not fit the line because of the long content in “Standard column” for “Domains inklusive” (all subsequent lines have slipped).
Best regards,
MathuseoNovember 28, 2020 at 5:55 pm #1263689Hey Marcel,
Sorry for the late reply and thanks for the link to your page.
Try adding this code to the end of your functions.php file in Appearance > Editor:function custom_script() { ?> <script> (function($) { $(document).ready(function(){ var width = $(window).width(); if ( width >= 767) { $('#pakete .avia-pricing-table-container .pricing-table-wrap:nth-child(2) li').each(function(index){ $('#pakete .avia-pricing-table-container .pricing-table-wrap:nth-child(1)').find('li').eq(index).css('height', $(this).css('height')); }); $('#pakete .avia-pricing-table-container .pricing-table-wrap li:nth-child(9)').css({ 'height': '91px' }); $('#pakete .avia-pricing-table-container .pricing-table-wrap li:nth-child(13)').css({ 'height': '66px' }); $('#pakete .avia-pricing-table-container .pricing-table-wrap li:nth-child(20)').css({ 'height': '88px' }); $('#pakete .avia-pricing-table-container .pricing-table-wrap li:nth-child(25)').css({ 'height': '66px' }); }; }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');
Then clear your browser cache and check.
Best regards,
MikeDecember 10, 2020 at 8:01 am #1266211Hi Mike,
Thank you very much!
Best regards,
MathuseoDecember 10, 2020 at 12:09 pm #1266262 -
AuthorPosts
- You must be logged in to reply to this topic.