Adjusting m.css to fit screen sizes (adaptability) has several Media Break Points:
Try slowly changing the width of the screen, say up to 1400px, up to 1024px, up to 600px, up to 420px
Use the Developer Console to see how it\'s done.
Below are some sets of classes for implementing screen-width adaptability.
Visible only on large screen sizes | .lg-visible |
Hidden only on large screen sizes | .lg-hidden |
Visible only on medium screen sizes | .md-visible |
Hidden only on medium screen sizes | .md-hidden |
Width 100% on medium screen sizes | .md-w100 |
Width 80% on medium screen sizes | .md-w80 |
Width 75% on medium screen sizes | .md-w75 |
Width 66.666% on medium screen sizes | .md-w66 |
Width 50% on medium screen sizes | .md-w50 |
Width 33.333% on medium screen sizes | .md-w33 |
Width 25% on medium screen sizes | .md-w25 |
Width 20% on medium screen sizes | .md-w20 |
Width 16.666% on medium screen sizes | .md-w16 |
Width 12.5% on medium screen sizes | .md-w12 |
Width 10% on medium screen sizes | .md-w10 |
Floating by left side on medium screen sizes | .md-float-left або .md-flt-l |
Floating by right side on medium screen sizes | .md-float-right або .md-flt-r |
Alignment text to the left on medium screen sizes | .md-text-left або .md-txt-l |
Alignment text to the right on medium screen sizes | .md-text-right або .md-txt-r |
Alignment text to the center on medium screen sizes | .md-text-center або .md-txt-c |
Alignment text to justify on medium screen sizes | .md-text-justify або .md-txt-j |
Visible only on small screen sizes | .sm-visible |
Hidden only on small screen sizes | .sm-hidden |
Width 100% on small screen sizes | .sm-w100 |
Width 80% on small screen sizes | .sm-w80 |
Width 75% on small screen sizes | .sm-w75 |
Width 66.666% on small screen sizes | .sm-w66 |
Width 50% on small screen sizes | .sm-w50 |
Width 33.333% on small screen sizes | .sm-w33 |
Width 25% on small screen sizes | .sm-w25 |
Width 20% on small screen sizes | .sm-w20 |
Width 16.666% on small screen sizes | .sm-w16 |
Width 12.5% on small screen sizes | .sm-w12 |
Width 10% on small screen sizes | .sm-w10 |
Floating by left side on small screen sizes | .sm-float-left або .sm-flt-l |
Floating by right side on small screen sizes | .sm-float-right або .sm-flt-r |
Alignment text to the left on small screen sizes | .sm-text-left або .sm-txt-l |
Alignment text to the right on small screen sizes | .sm-text-right або .sm-txt-r |
Alignment text to the center on small screen sizes | .sm-text-center або .sm-txt-c |
Alignment text to justify on small screen sizes | .sm-text-justify або .sm-txt-j |
Visible only on extra small screen sizes | .xs-visible |
Hidden only on extra small screen sizes | .xs-hidden |
Width 100% on extra small screen sizes | .xs-w100 |
Width 80% on extra small screen sizes | .xs-w80 |
Width 75% on extra small screen sizes | .xs-w75 |
Width 66.666% on extra small screen sizes | .xs-w66 |
Width 50% on extra small screen sizes | .xs-w50 |
Width 33.333% on extra small screen sizes | .xs-w33 |
Width 25% on extra small screen sizes | .xs-w25 |
Width 20% on extra small screen sizes | .xs-w20 |
Width 16.666% on extra small screen sizes | .xs-w16 |
Width 12.5% on extra small screen sizes | .xs-w12 |
Width 10% on extra small screen sizes | .xs-w10 |
Floating by left side on extra small screen sizes | .xs-float-left або .xs-flt-l |
Floating by right side on extra small screen sizes | .xs-float-right або .xs-flt-r |
Alignment text to the left on extra small screen sizes | .xs-text-left або .xs-txt-l |
Alignment text to the right on extra small screen sizes | .xs-text-right або .xs-txt-r |
Alignment text to the center on extra small screen sizes | .xs-text-center або .xs-txt-c |
Alignment text to justify on extra small screen sizes | .xs-text-justify або .xs-txt-j |
Using multiple classes at once can change the number of items in rows, depending on the screen width. For example, article thumbnails on this site have several classes:
class="w33 md-w33 sm-w50"
resulting in large and medium screens are per 3pcs each in a row (their width is 33.333%) and in small - already 2 (width 50%). On very small screens, these blocks automatically become 100% wide, so it makes no sense to specify an additional xs-w100 class.
Post your questions and comments in the form below.
Users comments
Sorry you cant to leave a comment. Try to authorize yourself via login and password or use a one of social networks below: