Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 756 Bytes

responsive-design.md

File metadata and controls

30 lines (20 loc) · 756 Bytes

Responsive design:

  • Use Tables
  • Some clients - mainly mobile support media queries:

The following CSS helped achieving responsive tables on mobile:

@media only screen and (max-width: 600px) {
    table {
        width: auto !important;
    }
}

Before:

Image

After:

Image

  • Add some side margins so that the text won't be close to the screen border to each element using margin:0 1em; as example:

Before:

Image

After:

Image