Table width on ipad
-
Hi Tobias,
Just a little question about viewing my table on ipad (landscape). Here is the full code:
@media (max-width: 768px) { .tablepress-id-2 th { } .tablepress-id-2 .row-1 .column-2 { vertical-align: middle; text-align: center; } .tablepress-id-2 td { font-size: 10px; line-height: 13px; } .tablepress-id-2 img { min-width: 50px; max-width: 100%; vertical-align: middle; } } @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) { table.tablepress-id-2 { width: 400px; margin: 0 auto 1em; } .tablepress-id-2 .row-1 .column-1 { background-color: #33FFB2; } } .tablepress-id-2 .row-1 .column-2 { vertical-align: middle; text-align: center; } .tablepress-id-2 .row-1 .column-1 { background-color: #05affd; } .tablepress-id-2 .row-3 .column-2 { background-color: #05affd; }As you can see, it looks pretty good on all devices, apart from on Landscape ipad where the table seems to be a bit wide for the grey section. If you notice the blue box that says: ‘Beef & Onion’, seems to be bleeding out onto the white.
In:
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) { table.tablepress-id-2 { width: 400px; margin: 0 auto 1em; } .tablepress-id-2 .row-1 .column-1 { background-color: #33FFB2; } }I have tried to force the table to narrow when it is display on Ipad (Landscape) but it does not take effect (even my change of background colour does not work).
Can you please advise?
Cheers,
Paul
(p.s. I Love Your Plugin)
- This topic was modified 7 years, 5 months ago by .
- This topic was modified 7 years, 5 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Table width on ipad’ is closed to new replies.