Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1311167

    On a full screen we have this laid out correctly. So all in columns
    https://pasteboard.co/KccGnts.jpg

    But when we go to mobile we see it all messes up and they dont line up
    https://pasteboard.co/KccGVCM.jpg

    How can this be fixed please to One column is listed, then next full column and so and so

    #1312205

    Hey wealthyone,
    Thank you for your patience and thanks for the screenshots, it looks like you are using your table in tabular data mode under table styling instead of Pricing Table.
    If you check our Table Element demo
    Pricing_Table_Element_demo.jpg
    you can see that the Pricing Table displays as you are asking for mobile
    Pricing_Table_Element_demo_mobile.jpg
    Please give this a try.

    Best regards,
    Mike

    #1312210

    Great thanks again.
    So is there a way to make all the different columns be the same height when showing on laptop size?
    ( Like all side by side)

    #1312218

    Hi,
    For laptop do you mean 768px ▸ 1024px ?
    they should be showing this way now
    2021-07-25_006.jpg
    If you mean a different size then please link to your page.

    Best regards,
    Mike

    #1312219

    Yes that size or larger
    as you can see they are not all the same size due to extra wording on the end column

    https://pasteboard.co/KcNQoWp.png

    #1312232

    Hi,
    From your screenshot I see the columns are not the same height, I thought we were talking about having the columns side-by-side on tablets instead of stacked as on mobile.
    I assume that we are still talking about the table element, because if they were the column elements you could use the “equal height” option. The tables do not have this option, but you could try a script like this: specific equal height rows
    From your screenshot it looks like you could use some css to set a min-height to all of the blue cells, but that would give most of them extra empty space. Probably the best solution would be to add some more text to each item, some general like “Starter Package” or “Most Popular” or “Makes a Great Gift” there is always some filler you can add.

    Best regards,
    Mike

    #1312390

    2 things
    1. Yes on Mobile it was not showing properly. Is now.
    2. On a larger screen columns are not even heights.
    So now I have changed to the Pricing Table which fixed the mobile layout
    But yes still not showing equal heights on a larger screen.
    And yes it is only whats in the light blue because the last one has more info..
    And really dont want to add any extra info that is not required to the first 3 columns.

    and sorry the specific equal height rows link is not very easy to follow for a non coder

    So I could use some css to set a min-height to all of the blue cells, and if it means blank space I think I would prefer that to having it look out of whack like it is now

    thanks

    #1312415

    Hi,
    Very good then, it sounds like everything is sorted out, shall we close this then?

    Best regards,
    Mike

    #1312418

    No it is NOT sorted
    the coloums are Not all even

    #1312678

    Hi,
    I thought that you wrote:

    So I could use some css to set a min-height to all of the blue cells, and if it means blank space I think I would prefer that to having it look out of whack like it is now

    making the blue area in all columns the same height will add extra blank space to the first 3 columns.
    The best solution to achieve his would be using css to set a min-height to the blue cells, if you would like help with this please link to the page, I can’t write the css based on a screenshot.

    Best regards,
    Mike

    #1312879

    Link supplied.

    #1313025

    Hi,
    Thank you for the link, I noticed that in some of your pricing tables that the header row also had different content amounts so it was also having the same issue as the blue cells, I thought that this script would work better at calculating the equal heights for different screen sizes that a manual fixed min-height value. Below is a screenshot of how it looks in my test, but since you have other pricing tables by themselves I believe you would well to add a custom class to the tables that are 4 across and then add this class to the script, if you are not sure how to modify the script then just add the custom class to only those tables and I will post an updated version of the script, otherwise try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_equal_height_pricing_table() { ?>
        <script>
    (function($){
    $('.avia-pricing-table-container').each(function(){  
      var $columns = $('.pricing-table-wrap li.avia-heading-row',this);
      var maxHeight = Math.max.apply(Math, $columns.map(function(){
        return $(this).height();
      }).get());
      $columns.height(maxHeight).css({'vertical-align':'middle'});
    });
    $('.avia-pricing-table-container').each(function(){  
      var $columns = $('.pricing-table-wrap li:nth-child(3)',this);
      var maxHeight = Math.max.apply(Math, $columns.map(function(){
        return $(this).height();
      }).get());
      $columns.height(maxHeight);
    });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_equal_height_pricing_table');

    Best regards,
    Mike

    #1313038

    Thats Brilliant.
    They all look great for the whole page..

    All I did was add this to functions.php and it worked.
    Did I need to add the class???

    When I adjust other pages I will check and see they all work.

    Thanks heaps

    #1313192

    Hi,
    Glad this helped and is working correctly for you in your tests, if you find that there are any conflicts with tables on other pages then I would recommend adding a custom class, otherwise you should be all set.
    Let us know so we can close this thread.

    Best regards,
    Mike

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.