Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #168411

    Hello. I have created the following page.

    http://oakparkpediatrics.com/resources/local-pharmacies/

    On a smaller browser window the table converts to a single column. This is OK, but it doesn’t do so correctly. The fields are not in the proper order. Notice how the “City” heading row does not appear on the smaller window.

    Please let me know how we can resolve this.

    Thank you.

    Zach
    (Email address hidden if logged out)

    #168556

    Hey kangaroozach!

    Please edit css > shortcodes.css, find this code:

    @media only screen and (max-width: 767px)
    {
    	.responsive div .avia-data-table table,
    	.responsive div .avia-data-table tbody,
    	.responsive div .avia-data-table tr,
    	.responsive div .avia-data-table td,
    	.responsive div .avia-data-table th{display:block; border-top:none; border-right:none; border-left:none; text-align: center;}
    	.responsive .avia-data-table{border-style:solid; border-width: 1px;}
    	.responsive .avia-data-table .avia-pricing-row .avia-desc-col{text-align: center;}
    	.responsive .avia-data-table .avia-button-row, .responsive .avia-data-table tr:first-child th{display:none;}
    	.responsive .avia-data-table td:before {
    	display:block;
    	font-style: italic; font-size: 11px;
    	}
    
    	.responsive .avia-data-table td {
    		position: relative;
    	}
    }

    Remove it. It will disable the responsive styling for mobile devices. I’ll get back to you after you remove it, the table might need some adjustments.

    Best regards,
    Ismael

    #168571

    Thank you. I commented it out by adding “/*” before and “*/” after.

    Please let me know what next. Thanks for the fast response.

    -Zach

    #169340

    Hello Zach!

    Looks like that did it perfectly.

    What you’ll get now however is that on mobile devices or screens that are smaller in width than the table can compress down to fit the table will overflow the browser container.

    So you can either put a note above it mentioning that mobile users will need to view the table in landscape to view the whole thing (anyone with smaller width than about 660px) or you could do something a bit more fancy and try to hide the table at widths below that and display secondary information that would only show on screen widths that size to give alternative information.

    Regards,
    Devin

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Table doesn't look right on mobile…’ is closed to new replies.