Re: [tsc-devel] Web site accessibility in text broswer.

Quintus | Wed, 09 Sep 2015 15:37:26 UTC

Lauri Ojansivu <…x@x…> writes:
> There are couple possibilities for fixing this:
> 1) Using noscript tag to provide menu for text browsers
> 2) rewrite HTML using Javascript

Neither. Use the correct nesting <li><a></a></li>, and use CSS to set
the <a> tags to "display: block" or "display: inline-block" and give
them a width, a height, and most importantly a line height. That will
work in graphical browsers properly. Take a look at how the navbar at
the top of this website[1] is styled, entirely without JavaScript, but
with correct nesting of the tags (disclaimer: I wrote that website).

Vale,
Quintus

[1]: https://www.west-ik.de/

-- 
#!/sbin/quintus
Blog: http://www.guelkerdev.de

GnuPG key: F1D8799FBCC8BC4F