Suppose a webpage has two menus, one for a "desktop" sized screen and another for tablets/phones. It might looks something like this:

<div class="hide-me-on-wide-screens">
     ...menu items...
  <img class="logo">
  <div class="hide-me-on-narrow-screens">
       ...the same menu items again...

Css hides and shows the appropriate menu using media queries and display: none

My question is, will this be a problem for people who use screen readers? If so how can we mitigate this, assuming that we don't want to refactor our HTML.

1 Answer 1


According to https://webaim.org/techniques/css/invisiblecontent/ screen readers ignore content that is set to display:none;. When you hide one or the other menu, modern screen readers should be able to interpret your site correctly.

For you site to be usable with a screen reader, it is a good idea to include a link at the very top of that skips to the main content and bypasses the menus. Screen readers work much better when the users can bypass the navigation and quickly get to the content. The article I linked has code that can hide that link visually, but still make it available to screen readers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.