The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Question about using “display: none;”

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #39421

    Hi all,

    I would like to use a drop-down menu on a web site that I’m working on, but have a question about usability/accessibility as well as whether or not it will cause issues on being read/indexed by the search engines.

    Here is the basic menu: myMenu.html.

    Here is the article that raised my concern: Places It’s Tempting To Use Display: None; But Don’t

    The menu listed above uses the setting of display: none; initially, then changes that setting to display: block; via jQuery. My concern is that it will make the menu unreadable to screen readers causing usability issues, plus I’m concerned that the navigation will not be indexed by the search engines causing another set of problems.

    JS used:

    /*  JavaScript Document                      */
    /* */


    $('.nav_menu .dropdown').css('display','block');

    $('.nav_menu > ul').dropmenu({
    effect : 'slide',
    speed : 250,
    timeout : 0,
    nbsp : false

    Any input on how to adjust this menu, or another method to use?


    Well, I use the CSS3(I believe) way and use visibility: hidden;. It’s very easy to do without JS.


    Indexing is done on page content to a much greater extent than what your menus might say.

    As far as I know, which is little, in the area of screen readers is that they are reading the HTML not exactly what is on the screen. Therefore, using that logic, they will read the menu items even though, at the moment, they are not visible on the screen.

    Happy to be corrected.


    Thanks to everyone for the recommendations. I’ve decided to do some additional research to familiarize myself with the use of “visibility” and redesign accordingly.

    Thanks for all the help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.