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

Home Forums CSS CSS Menu Slider for Mobile Devices – Collaboration Re: CSS Menu Slider for Mobile Devices – Collaboration


@bkbillma I thought about using :hover/:target/:active to make this work, but I forget why I ultimately decided to go a different direction. Obviously, I don’t like the idea of building a complete navigational structure off of a hack, but CSS offers very little opportunities to store state information.

Which part of the website demonstrates your version? I couldn’t find it.

Obviously, this entire thing would work much simpler with Javascript, but CSS-only is fun and challenging – plus it hasn’t been done yet. This is more of an exercise to see how we can leverage CSS to do many of the things people just appropriate to JS, which (in certain instances) negatively affects page loading times. I usually only use JS to make things pretty, but rely on HTML and CSS for functionality (although, again, this is a hack and not really best practice).