I am trying to use foundations hide-for-small class to hide my navbar on mobile. It doesn't appear to be having any affect. As far as I understand

<h1 class="hide-for-small">Hidden on Mobile</h1>

should show the element on my computer, but hide it on my iPhone.

What am I missing?

1

Best Answer


It turns out it was a simple mistake, I left out my viewport meta tag.

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