Article View: comp.lang.javascript
Article #17Re: sub-menu?
From: Dale
Date: Tue, 03 Nov 2026 00:18
Date: Tue, 03 Nov 2026 00:18
55 lines
2761 bytes
2761 bytes
On 11/1/2026 1:55 PM, Dale wrote:
>
> Got a new menu on my website.
>
> I like the new menu more lately for smart phones.
>
> https://www.dalekelly.org/
>
> https://www.dalekelly.org/mystyle5.css
>
> Any designs available for sub-menus?
>
> Will be researching this.
>
> The new menu is in one of those square icons with 3 lines.
>
> w3.org has the type of menu now.
>
>
Almost there with a recommendation from the r/HTML group on Reddit!
I would like the sub-menu to indent to the right of the main menu.
https://www.dalekelly.org/indexsubmenu.html
https://www.dalekelly.org/mystyle7.css
Here is the code from Reddit (find details of mine in links above):
You can simply replace, for example,
<a href="https://www.dalekelly.org/images.html">Images</a>
with
<details>
<summary>Images</summary>
<a href="https://www.dalekelly.org/images.html">Images 1</a>
<a href="https://www.dalekelly.org/images2.html">Images 2</a>
</details>
and add this
.dropdown-menu details summary {
padding: 10px 15px;
/* display:block; */ /* to hide the marker */
}
.dropdown-menu details::details-content {
margin-inline-start:17px;
}
to your css.
--
Lore? -> https://www.dalekelly.org/
Technical Details
Message-ID:
<U8icnalagcH3tXT3nZ2dnZfqn_SdnZ2d@supernews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.18.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mailReferences:
<34acnSlUQfC-Fnr3nZ2dnZfqnPqdnZ2d@supernews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.18.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 03 Nov 2026 00:18:50 +0000 Date: Mon, 2 Nov 2026 19:18:41 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: sub-menu? Newsgroups: comp.lang.javascript,alt.comp.lang.javascript References: <34acnSlUQfC-Fnr3nZ2dnZfqnPqdnZ2d@supernews.com> Content-Language: en-US From: Dale <dalekellytoo@gmail.com> Organization: www.dalekelly.org In-Reply-To: <34acnSlUQfC-Fnr3nZ2dnZfqnPqdnZ2d@supernews.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <U8icnalagcH3tXT3nZ2dnZfqn_SdnZ2d@supernews.com> Lines: 55 X-Trace: sv3-5VNZuY14QE8dtZ+vdbCKXfNfpW0IhxPzXSd/8GN1mnzBOmHL2gkMcvBsNqMfvbybJQ6gG4gxtPmfuKB!BGbLQFQeIXUJXK694UbOzbg7rXCZanp6tM9WR5Dq+UxnlIgP8nXFmcqetyZWbdbWT8lkjeKjvQ1F!XMKyaOM8kDU= X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40