Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@mr-user You know the part of URL after "#"? Just having link with "href=#page1" and element with "id=page1" will make the tiny router. You simply put styles under "#page1:target" selector and magic happens. IIRC it's used much on forums where you generate a link to the comment with hash part, you get automatically scrolled to it and it's highlighted, because ":target" applies.
-
Root825574yHTML + CSS is technically Turing complete; you can build anything with it if you’re really willing (and have a ready source of repeated input). So... sure? 🤷🏻♀️
-
It is one of the simples routers to implement actually. Not too a11y friendly, but works great across browsers. Use :target to display the selected tab/page/section. I wrote something about it a ways back: https://dev.to/hakash/...
Related Rants
-
3rdWorldPoison8Something that I'm utterly ashamed of. Had to add text message and call communication functionality in one of...
-
sleek17i work on a music streaming app. bug: playlist description shows there are X songs inside. But when you go i...
-
linuxxx13Waaaay too many but let's go with this one for now. At my previous job there was a web application which was...
Client-side router entirely in CSS
rant
wk228