Tagged: display, Responsive Layout, table
-
AuthorPosts
-
June 26, 2013 at 3:57 pm #25391
Hi,
We’ve set our Enfold layout to Responsive Layout Large and have a table consisting of two columns – one being a Descriptive Column. When viewed on an iPad, it displays correctly. On an iPhone, however, it only shows the default column. You can imagine how weird it looks as there’s no relative context. How would one go about rectifying this? I have a picture available if you need to see an example of what it looks like.
June 27, 2013 at 1:38 am #126760Hi,
Please add this on your custom.css or Quick CSS
@media only screen and (max-width: 767px) {
.responsive .pricing-table.avia-desc-col {
display: block !important;
}
}Regards,
Ismael
June 27, 2013 at 11:59 am #126761Hi,
Thanks, both display now. However – whether viewed in portrait or landscape layout, the two columns appear above and beneath each other, not alongside.
June 28, 2013 at 2:18 am #126762June 28, 2013 at 10:10 am #126763Sure – siptrunkplus.com
Table is under heading”Quick Comparison of Our SIP Trunk Plus Service” on the homepage
June 30, 2013 at 11:36 am #126764Hey!
Hey! You can change that behavior by opening the shortcode.css file and removing line 1054 which reads:
.responsive .avia-pricing-table-container, .responsive .pricing-table-wrap {
display: block;
}
Best regards,
Kriesi
July 2, 2013 at 10:09 am #126765I have a feeling this is a ridiculously silly question, but – how do I gain access to that file?
July 2, 2013 at 3:16 pm #126766Hey!
You can use ftp – navigate to wp-content/themes/enfold/css/ and download the file. Then edit it and upload it again. You can also use a plugin like: http://wordpress.org/plugins/solid-code-theme-editor/
Best regards,
Peter
July 5, 2013 at 7:02 pm #126767Hi, we’ve tried both options – Ismael’s and Dude’s. The table still appears with one column showing above the other.
July 7, 2013 at 4:39 am #126768We’ll need a link seeing the page live with the css change in place to inspect the code and see whats going on then.
Regards,
Devin
July 8, 2013 at 12:21 pm #126769Sure, it’s the siptrunkplus.com home/landing page. The table previews fine on an iPad and obviously computer screens, just not the iPhone. It’s the table below: “Quick Comparison of Our Sip Trunk Plus Service”.
July 9, 2013 at 8:04 pm #126770The line Kriesi specified above to be removed is still there which is why it is still happening. Another option would be to Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:
@media only screen and (max-width: 767px){
.responsive .avia-pricing-table-container,
.responsive .pricing-table-wrap {
display: table-cell;
}
}If you are unable to remove the line.
Regards,
Devin
July 10, 2013 at 10:06 am #126771Hi Devin, apparently there was a mis-communication on our part, the person that deals with the CSS tried the first option where you needed to add lines to the CSS, not the second where you had to remove the line. So it was a duplicated effort – so my fault on that, sorry.
However, your third suggestion seems to be working now, the only problem is that it’s showing the same issue as the table originally did right in the beginning – there was a thread about it on the forum: https://kriesi.at/support/topic/description-column-in-tables-not-aligning-properly-with-adjoining-columns
The issue we were experiencing with the alignment on the website is now occurring on the phone. So both columns are displaying next to each other, but their alignment is off – as described in the above thread.
July 10, 2013 at 10:14 am #126772-Keeping in mind that the lines that were added to the CSS as instructed in the first suggestion are still there – should they now be removed?
July 12, 2013 at 12:04 am #126773Go ahead and remove the initial one and see if that does it. If not, link us directly to the page again with what you have live.
July 17, 2013 at 9:02 am #126774Okay, removed initial .CSS – gone back to only displaying one column with “got it” text. Can view it at http://www.siptrunkplus.com
July 18, 2013 at 4:07 pm #126775Hi,
Please do this.
1) Add the following CSS
@media only screen and (max-width: 767px){
.pricing-table li{
height:60px
}}
@media only screen and (max-width: 479px){
.pricing-table li{
height:90px !important;
}
}2) And open up /css/shortcodes.css and *delete the entire block* on lines 1059-1063 that looks like
@media only screen and (max-width: 767px)
{
.responsive .avia-pricing-table-container , .responsive .pricing-table-wrap{display:block;}
.responsive .pricing-table{display:block; margin-bottom:40px;}
.responsive .pricing-table.avia-desc-col{display:none;}
}Thanks,
Nick
July 19, 2013 at 12:08 pm #126776Alright, I think the best thing to do here is to start completely from scratch: the page itself looks terrible now. Tables are not corresponding/aligning correctly in a horizontal manner and first box in the final row is consistently too large compared to the rest – about 3 times too large.
So, as of today, these are the 3 dilemmas:
1. Tables are not aligning correctly (the descriptive and default columns are not equalized)
2. Tables are not displaying properly on iPhones – only default column shows
3. (New) Tables are not displaying properly on iPads – content is cut off after a certain number of characters.
In this thread, https://kriesi.at/support/topic/description-column-in-tables-not-aligning-properly-with-adjoining-columns the alignment issue in number 1. was sorted, but now the tables have gone wonky again, which is why I suggest starting over, because there’s no point
in creating css to resolve the iPhones and iPads issues if the tables are displaying incorrectly in the first place.
Tables can be seen on these two pages:
July 20, 2013 at 4:11 pm #126777Hi,
1. I see this in your Quick CSS. Please remove it (all of it)
@media only screen and (max-width: 767px){
.responsive .avia-pricing-table-container,
.responsive .pricing-table-wrap {
display: table-cell;
}
}2. I asked you to remove some lines , to *delete the entire block* from shortcodes.css which you have not done.
This is how you have those lines now (see my previous answer for instructions) ..
@media only screen and (max-width: 767px)
{
/*
.responsive .avia-pricing-table-container , .responsive .pricing-table-wrap{display:block;}
*/
.responsive .pricing-table{display:block; margin-bottom:40px;}
.responsive .pricing-table.avia-desc-col{display:none;}
}and this is how you need to have them
@media only screen and (max-width: 767px)
{
/*.responsive .avia-pricing-table-container , .responsive .pricing-table-wrap{display:block;}*/
.responsive .pricing-table{display:block; margin-bottom:40px;}
/*.responsive .pricing-table.avia-desc-col{display:none;}*/
}3) Please make sure that the css i gave you in my previous answer is located **on the very bottom** of your Quick CSS.
—
If you follow my instructions, this is how you will see your site:
http://www.clipular.com/c?10722065=LJJ3AGezHj1ntzhiVQmVbSPUriU&f=.png (tablet)
http://www.clipular.com/c?10763031=C3vk5V6dC3uqO3NE_okXYqDbluo&f=.png (smartphone)
Thanks,
Nick
-
AuthorPosts
- The topic ‘Description Column in Tables Not Displaying on iPhone’ is closed to new replies.