-
AuthorPosts
-
July 21, 2021 at 3:46 pm #1311167
On a full screen we have this laid out correctly. So all in columns
https://pasteboard.co/KccGnts.jpgBut when we go to mobile we see it all messes up and they dont line up
https://pasteboard.co/KccGVCM.jpgHow can this be fixed please to One column is listed, then next full column and so and so
July 25, 2021 at 11:59 am #1312205Hey 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
you can see that the Pricing Table displays as you are asking for mobile
Please give this a try.Best regards,
MikeJuly 25, 2021 at 12:34 pm #1312210Great 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)July 25, 2021 at 2:06 pm #1312218July 25, 2021 at 2:17 pm #1312219Yes that size or larger
as you can see they are not all the same size due to extra wording on the end columnJuly 25, 2021 at 4:52 pm #1312232Hi,
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,
MikeJuly 26, 2021 at 11:49 am #13123902 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
July 26, 2021 at 12:53 pm #1312415Hi,
Very good then, it sounds like everything is sorted out, shall we close this then?Best regards,
MikeJuly 26, 2021 at 1:00 pm #1312418No it is NOT sorted
the coloums are Not all evenJuly 27, 2021 at 10:18 am #1312678Hi,
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,
MikeJuly 28, 2021 at 2:27 am #1312879Link supplied.
July 28, 2021 at 1:11 pm #1313025Hi,
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,
MikeJuly 28, 2021 at 1:40 pm #1313038Thats 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
July 29, 2021 at 10:09 am #1313192 -
AuthorPosts
- You must be logged in to reply to this topic.