🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.javascript
Article #6

Re: main menu

#6
From: Jon Ribbens
Date: Wed, 28 Oct 2026 16:02
44 lines
2926 bytes
On 2026-10-28, Dale <dalekellytoo@gmail.com> wrote:
> On 10/28/2026 10:02 AM, Jon Ribbens wrote:
>> On 2026-10-28, Dale <dalekellytoo@gmail.com> wrote:
>>>> Here is my progress so far:
>>>>
>>>> https://www.dalekelly.org/mystyle3.css
>>>>
>>>> https://www.dalekelly.org/index - Copyagain.html
>>>>
>>>> the menu options but the text doesn't show
>>>>
>>>> want the menu to always be there when I browse the links of the menu
>>>
>>> fixed the name:
>>>
>>> https://www.dalekelly.org/indexCopyagain.html
>> 
>> In the style definition for .dropdown-menu change 'right: 0' to 'left: 0'.
>
> that worked great, thank you !
>
> https://www.dalekelly.org/indexCopyagain.html
>
> I got the menu showing up
>
> just have to put the new menu on all of my around 50 pages unless there 
> is an easier design, something like having the menu only on the home 
> page or CSS file

You could potentially use Apache Server-Side Includes to put the menu
code into a separate file that is included automatically into each page:
https://httpd.apache.org/docs/current/howto/ssi.html
e.g. <!--#include virtual="/menu.html" -->

Or you could move to an actual static site templating system such as
Jekyll: https://jekyllrb.com/  But be aware there is a noticeable
learning curve there.

> to do that I would put the new CSS into the CSS file instead of HTML 
><style> location, tried but didn't work
>
> https://www.dalekelly.org/mystyle3.css

There's no particularly obvious reason that shouldn't work.
Technical Details
Message-ID: <slrn11e474v.2an.jon+usenet@raven.unequivocal.eu>
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
References: <vnadneGOjuwqA3z3nZ2dnZfqnPidnZ2d@supernews.com> <wGadnS3vn6B1cHz3nZ2dnZfqnPWdnZ2d@supernews.com> <wGadnS_vn6A1c3z3nZ2dnZfqnPWdnZ2d@supernews.com> <slrn11e403m.2an.jon+usenet@raven.unequivocal.eu> <yN-dnTIar9ETkH_3nZ2dnZfqn_ednZ2d@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: Jon Ribbens <jon+usenet@unequivocal.eu>
Newsgroups: alt.comp.lang.javascript,comp.lang.javascript
Subject: Re: main menu
Date: Wed, 28 Oct 2026 16:02:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <slrn11e474v.2an.jon+usenet@raven.unequivocal.eu>
References: <vnadneGOjuwqA3z3nZ2dnZfqnPidnZ2d@supernews.com>
 <wGadnS3vn6B1cHz3nZ2dnZfqnPWdnZ2d@supernews.com>
 <wGadnS_vn6A1c3z3nZ2dnZfqnPWdnZ2d@supernews.com>
 <slrn11e403m.2an.jon+usenet@raven.unequivocal.eu>
 <yN-dnTIar9ETkH_3nZ2dnZfqn_ednZ2d@supernews.com>
Injection-Date: Wed, 28 Oct 2026 16:02:40 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2705154"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+6ZmGFWj0gPkv9q4HHxYYNQdRU3O9XYng="; posting-host="89b96dd8f27ce90dee1cd1a6716fc0fe"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:4pODEHRTOJUWV4UJsXckOCzpjq8=
	sha1:C9moxYhVNOdqbCmPBCV3rRJLcYE= sha256:t28LBVr6S4Um1L1dW0i6Z7QC45XQyNf0nXWv7M+SvqY=
	sha1:/MA/RoR2rPwwsMcWsqTvDDwysKE= sha256:bXENVsfcbWSdvGN+HnbSmbso9WyM0hKTBzhmoMox+Sw=