Article View: alt.html
Article #7Re: main menu on w3.org
From: Arno Welzel
Date: Wed, 28 Oct 2026 10:52
Date: Wed, 28 Oct 2026 10:52
41 lines
2878 bytes
2878 bytes
Dale, 2026-10-28 07:51: [...]> on w3.org there is a menu icon on the upper right corner that I would > like to design for all of my pages > > > https://www.w3.org/ The way how the menu is displayed, depends on the width of the viewport. So on mobile devices you will have a menu in the top right corner while desktop systems will have a list of drop down menus on top next to each other. This is also called "responsive design" - using CSS media queries you can define which rules apply depending on the properties of the current browser view. See more about this here: <https://www.w3schools.com/css/css_rwd_mediaqueries.asp> In addition browsers nowadays support a "popover" API which allows to build popover menus without JavaScript. The idea is, that you tell the browser which element is used to open and close the menu and which element contains the menu itself. The browser will then completely handle the menu on its own without any need for JavaScript. See more about this here: <https://developer.mozilla.org/en-US/docs/Web/API/Popover_API> And you can also use CSS to display or hide elements if the visible parent element touched by the mouse. This is how the drop down menus are implemented on my website <https://arnowelzel.de> - so these also work when JavaScript is disabled, since it is only CSS. -- Arno Welzel https://arnowelzel.de
Technical Details
Message-ID:
<11bsk5g$2bfgf$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<OTKdnemmV9HczXz3nZ2dnZfqn_adnZ2d@supernews.com> <11bru23$24jrf$1@dont-email.me> <2OSdnQ3AdoA9Bnz3nZ2dnZfqn_qdnZ2d@supernews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel <usenet@arnowelzel.de> Newsgroups: alt.html,comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets Subject: Re: main menu on w3.org Date: Wed, 28 Oct 2026 11:52:31 +0100 Organization: A noiseless patient Spider Lines: 41 Message-ID: <11bsk5g$2bfgf$1@dont-email.me> References: <OTKdnemmV9HczXz3nZ2dnZfqn_adnZ2d@supernews.com> <11bru23$24jrf$1@dont-email.me> <2OSdnQ3AdoA9Bnz3nZ2dnZfqn_qdnZ2d@supernews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 28 Oct 2026 10:52:33 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2473487"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9N+yn6QSrcWJOQ+iMNiYXsUHh+lUTb1A="; posting-host="addb5095ca1fc461609da840df1952d5" Cancel-Lock: sha1:7FZgK7nHzp1nRt/JJTh37zXjubY= sha256:MFixaGeNt71YOXsY0yLnoUOVcIZk3tL+W2xyptC8E0k= sha1:XiPAxNFTRYj500mtqhBhAzH/BQU= sha256:3Rc5C5OFWpY/6GpqxNhLEpHfs8wxk+E7IBbpD/TV0CQ= In-Reply-To: <2OSdnQ3AdoA9Bnz3nZ2dnZfqn_qdnZ2d@supernews.com> Content-Language: en-US, de-DE