
10

Forcing Grid Stacking with Bootstrap on Mobile
source link: https://fuzzyblog.io/blog/bootstrap/2021/12/23/forcing-grid-stacking-with-bootstrap-on-mobile.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Forcing Grid Stacking with Bootstrap on Mobile
Dec 23, 2021
I recently had the situation where a Bootstrap application:
- Worked perfectly on a desktop with a side by side layout
- Properly wrapped on desktop when the window was resized down to a mobile like form factor
- Failed to ever wrap on mobile showing just a smaller version of the desktop
I puzzled over this quite a bit until I ran a google search for "bootstrap text too small on mobile" which led me to this directive:
<meta name="viewport" content="width=device-width, initial-scale=1">
This needs to be inserted into your html head element and then, like magic, made everything format perfectly on mobile.
Posted In: #bootstrap
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK