Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Pricing table row heights
New Landing › How can we help? › Themeforest Theme Support › Flexform › Pricing table row heights
Tagged: causing, heights, pricing, row, table, tablesdiffering, text, weirdnessthankslara
- This topic has 9 replies, 4 voices, and was last updated 11 years by FloatingLime.
-
Posted in: Flexform
-
May 17, 2013 at 2:17 pm #5202
Hi there,
Please can you tell me how I set the row heights for my pricing tables.
Differing amount of text is causing weirdness!
http://www.floatinglimemedia.com/prices/
Thanks
Lara
May 17, 2013 at 2:34 pm #5209As far as I know (from reading another post on the topic and wanting the answer myself) there isn’t a way to set the height of the rows in the pricing tables. My solution for adding spacing was to make a 1 PX translucent (no color) .png that I add in where I need it. I have another that’s 10 PX. I know it’s not the greatest fix ever, and it will add space on a mobile version, but aside from that their only other fix was to suggest that you go and have someone custom code jquery. (As per this post: http://support.swiftideas.net/forums/topic/pricing-table-misalignment/ )
Hopefully they’ll get back to you! I should note I’m not the official support or anything, just been having that issue myself.
I attached the spacers that I made, not sure if you can download them or not. And I know it’s not really “proper” coding, but adding CSS for some spacing things in WordPress is just annoying. ๐
May 19, 2013 at 9:02 pm #5421Hi there,
Try this custom css:
.pricing-table-column.label-column .pricing-table-label-row:first-child { height: 132px; }
– Ed
May 28, 2013 at 11:21 am #6310Hi Guys,
Thanks for the help. As always apologies for the delay in getting back to you – I don’t get to work on this nearly as often as I’d like.
Sadly the custom CSS did nothing, so I will now try the spacer idea. I’ll let you know how I get on.
Regards
Lara
May 28, 2013 at 2:22 pm #6318Thanks for the help – but still no joy!
Thinking of abandoning this and just using a standard table where at least a row will be the same height across the row i.e. the maximum height!
May 28, 2013 at 7:05 pm #6351I’ve just had a look at the website and to me all the table heights seem to be the right height? Am I missing something?
Cheers
-BenJune 11, 2013 at 6:49 pm #7874Hi Ben – thanks for getting back to me – they are all the right height now.
I have added text on the lines below and have coloured then slightly lighter than the background.
I know Google used to really penalise you for this as proof that you were trying to hide something / cheat the system.
I’m just hoping it doesn’t happen to me as I couldn’t find anything else to work.
June 19, 2013 at 10:40 pm #8751I had success using this code for this. It’s a bit complicated, but it also addresses all the responsive stages. There’s four different height levels for the different responsive stages. You may find you don’t need that many, I’ve just included everything you may need. There’s also a way to adjust how far down (or up) the label column on the left hand side is, just incase something has gotten off. The heights don’t really mean anything in this yet. You’ll need to adjust them for your own code accordingly.
/* For screen widths over 1200px */
@media only screen and (min-width: 1200px)
{
/* This first line is optional. If playing with the heights of the other items somehow messes up where your pricing table row falls vertically, you can use this css to correct that. */
.labelled-pricing-table .pricing-table-column.label-column {margin-top: 100px !important;}
/* This line handles the label column on the left */
.labelled-pricing-table .label-column .pricing-table-label-row {max-height: 65px; height: 65px;}
/* Next line handles the highlighted rows */
.labelled-pricing-table .alt-row {max-height: 65px; height: 65px;}
/* Last line handles the */
.labelled-pricing-table .pricing-table-row {max-height: 65px; height: 65px;}
}/* For screen widths between 979 and 1200 */
@media only screen and (max-width: 1199px) and (min-width: 979px)
{
/* This first line is optional. If playing with the heights of the other items somehow messes up where your pricing table row falls vertically, you can use this css to correct that. */
.labelled-pricing-table .pricing-table-column.label-column {margin-top: 100px !important;}
/* This line handles the label column on the left */
.labelled-pricing-table .label-column .pricing-table-label-row {max-height: 65px; height: 65px;}
/* Next line handles the highlighted rows */
.labelled-pricing-table .alt-row {max-height: 65px; height: 65px;}
/* Last line handles the */
.labelled-pricing-table .pricing-table-row {max-height: 65px; height: 65px;}
}
/* For screen widths between 768 and 979 */
@media only screen and (max-width: 979px) and (min-width: 768px)
{
/* This first line is optional. If playing with the heights of the other items somehow messes up where your pricing table row falls vertically, you can use this css to correct that. */
.labelled-pricing-table .pricing-table-column.label-column {margin-top: 100px !important;}
/* This line handles the label column on the left */
.labelled-pricing-table .label-column .pricing-table-label-row {max-height: 65px; height: 65px;}
/* Next line handles the highlighted rows */
.labelled-pricing-table .alt-row {max-height: 65px; height: 65px;}
/* Last line handles the */
.labelled-pricing-table .pricing-table-row {max-height: 65px; height: 65px;}
}
/* For screen widths under 768 */
@media only screen and (max-width: 768px)
{
/* This first line is optional. If playing with the heights of the other items somehow messes up where your pricing table row falls vertically, you can use this css to correct that. */
.labelled-pricing-table .pricing-table-column.label-column {margin-top: 100px !important;}
/* This line handles the label column on the left */
.labelled-pricing-table .label-column .pricing-table-label-row {max-height: 65px; height: 65px;}
/* Next line handles the highlighted rows */
.labelled-pricing-table .alt-row {max-height: 65px; height: 65px;}
/* Last line handles the */
.labelled-pricing-table .pricing-table-row {max-height: 65px; height: 65px;}
}
June 19, 2013 at 10:47 pm #8753I should note too that the above code will make *everything* the same height, not just one row. I would suggest maybe for your situation, you move the pricing and the name of the package into the same box on the top row, then put the description in the next box down, then use the code I gave to adjust how far down the label column needs to be.
I’d also suggest taking a look at how your columns look when you scale the window of your browser smaller, as there’s some odd alignment going on there that my code could fix. ๐
PS. Obviously you’re welcome to go about this project however you like. I’m just trying to make suggestions that will work within the theme. ๐
July 2, 2013 at 8:05 pm #9866Hi Wilson Group,
Thank you so much for spending time on this. I really appreciate all the effort you’ve gone to!
I am going to try your solution as soon as I get round to it, as it is a long way from perfect as you have noticed, and I really would like to get this right!
So many thanks again for your input.
All the best
Lara
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.