tailwindlabs / tailwindcss.com

The Tailwind CSS documentation website.
https://tailwindcss.com
3.25k stars 1.72k forks source link

Document `viewport` dependency on Responsive Design page #1829

Closed pdc1 closed 3 months ago

pdc1 commented 3 months ago

I have been away from HTML development for a while, and thought I'd update an old-school project to use Tailwind CSS. I couldn't for the life of me figure out how to get responsive design to work on my phone (high-dpi screen). After reading all over the docs and Stack Overflow, I eventually figured out I was missing this critical line:

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

It would be wonderful to include a mention about this in the Responsive Design core concepts page!

adamwathan commented 3 months ago

Hey thanks for the suggestion, tweaked it here: https://github.com/tailwindlabs/tailwindcss.com/commit/a1f4dd1736825483f576922efd472759a5dbe428

pdc1 commented 3 months ago

Awesome, thanks!