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

Home Forums CSS How to structure mobile first nav?

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


    I have had many goes at trying to do mobile first. but don’t know the correct css layout.

    I would like to know how to structure mobile first nav then to desktop what do I need to do before the media queries?


    Make a menu using standard UL/LI structure, with the default CSS styles as you would like to see it on mobile.
    Then override those styles for desktop using media queries (if screen is larger than 600, show everything in a horizontal list…or whatever).

    Something like this:


    Thanks little strange for me going to mobile first

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