Tagged: x
-
AuthorPosts
-
July 7, 2016 at 12:31 pm #1076707
creativetoastParticipanthi,
Thanks for the awesome theme.
I’m trying to give it some padding between the columns (8px on both sides of each column), but now that pushes my last column down to the next line.
could you please show me how I can fix the sizing problem so that the table can be responsive and all columns fit on 1 row?Thank you very much in advance
July 7, 2016 at 12:32 pm #1076708
creativetoastParticipantThis reply has been marked as private.July 7, 2016 at 7:51 pm #1077245
creativetoastParticipanthi,
It took me a while to figure out the temporary solution to that. so I played around with the numbers
.x-pricing-column {
margin-right: 8px;
margin-left: 8px;
max-width: 284px;}However I still have some 2 issues:
– The sizing only displayed correctly on certain screen size (monitors) and on ipad horizontal the last column still jumps to next line. Is there a way that I could make it responsive and have all columns always on the same row (except on cellphone screen size)
– right now the whole pricing table is aligned left. how can I make it float to the middle?hope you can shed some light on these.
Thanks in advance,
July 7, 2016 at 9:30 pm #1077372
Rue NelModeratorHello There,
Thanks for the updates. To resolve this issue, please have your code updated and make use of this code instead:
.x-pricing-table.four-columns .x-pricing-column { margin-right: 8px; margin-left: 8px; width: calc(25% - 16px); max-width: 284px; }We have 25% minus 16 pixels since you want to add a left and right margin. Hope this helps.
July 7, 2016 at 10:08 pm #1077404
creativetoastParticipantwow, one extra line of css solves all my problem. You’re a genius. Thank you very much!!!
July 7, 2016 at 10:13 pm #1077412
creativetoastParticipantoops actually, it doesnt display correctly on mobile. is there a way to fix the responsiveness on mobile?
and plus everything is still align left, how can I center the columns on mobile?
it’s perfect on computer screens now btw.
July 8, 2016 at 3:08 am #1077637
Rue NelModeratorHello There,
To make sure that the css will only affect the desktop screens and still looks good on mobile screens, please have the code updated and use this instead:
@media(min-width: 980px){ .x-pricing-table.four-columns .x-pricing-column { margin-right: 8px; margin-left: 8px; width: calc(25% - 16px); max-width: 284px; } }Please let us know if this works out for you.
July 8, 2016 at 10:28 am #1078003
creativetoastParticipantworks great now. thank you sooooo much!
July 8, 2016 at 11:41 am #1078113
RahulModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1076707 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
