🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.javascript
14 messages
14 total messages Started by Dale Wed, 28 Oct 2026 07:05
main menu
#1
Author: Dale
Date: Wed, 28 Oct 2026 07:05
26 lines
1908 bytes
How can I do the main menu on ...

https://www.w3.org/

?

I have seen this on a lot of sites.

I think it would be better than how I do a main menu for different sizes 
of browser's windows.

https://www.dalekelly.org/

Looked at the code on the Chrome Browser but can't figure it out.

I have been on and doing website since mid-90's

new to javascripts

in the mid-90's cookies and scripts could cause a lot of browser window 
pop-ups

-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#2
Author: Dale
Date: Wed, 28 Oct 2026 12:43
39 lines
2280 bytes
On 10/28/2026 3:05 AM, Dale wrote:
> 
> How can I do the main menu on ...
> 
> https://www.w3.org/
> 
> ?
> 
> I have seen this on a lot of sites.
> 
> I think it would be better than how I do a main menu for different sizes 
> of browser's windows.
> 
> https://www.dalekelly.org/
> 
> Looked at the code on the Chrome Browser but can't figure it out.
> 
> I have been on and doing website since mid-90's
> 
> new to javascripts
> 
> in the mid-90's cookies and scripts could cause a lot of browser window 
> pop-ups
> 

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



-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#3
Author: Dale
Date: Wed, 28 Oct 2026 12:46
45 lines
2520 bytes
On 10/28/2026 8:43 AM, Dale wrote:
> On 10/28/2026 3:05 AM, Dale wrote:
>>
>> How can I do the main menu on ...
>>
>> https://www.w3.org/
>>
>> ?
>>
>> I have seen this on a lot of sites.
>>
>> I think it would be better than how I do a main menu for different 
>> sizes of browser's windows.
>>
>> https://www.dalekelly.org/
>>
>> Looked at the code on the Chrome Browser but can't figure it out.
>>
>> I have been on and doing website since mid-90's
>>
>> new to javascripts
>>
>> in the mid-90's cookies and scripts could cause a lot of browser 
>> window pop-ups
>>
> 
> 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

-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#4
Author: Jon Ribbens
Date: Wed, 28 Oct 2026 14:02
16 lines
1688 bytes
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'.
Re: main menu
#5
Author: Dale
Date: Wed, 28 Oct 2026 14:58
35 lines
2600 bytes
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

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

-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#7
Author: Jon Ribbens
Date: Wed, 28 Oct 2026 16:02
44 lines
2846 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.
Re: main menu
#8
Author: Dale
Date: Wed, 28 Oct 2026 18:18
64 lines
3845 bytes
On 10/28/2026 12:02 PM, Jon Ribbens wrote:
> 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.

thank you !

here is how far I got without something like an "include"

9 main menu items, 15 others on "thoughts"

https://www.dalekelly.org/

https://www.dalekelly.org/mystyle5.css

menu seems to be further to the left than the pages, I like the page to 
be centered on HOME page, pages are much worse on smart phone

I think this is a CSS or <style> thing I have to look into


-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#6
Author: Jon Ribbens
Date: Wed, 28 Oct 2026 19:03
65 lines
3763 bytes
On 2026-10-28, Dale <dalekellytoo@gmail.com> wrote:
> On 10/28/2026 12:02 PM, Jon Ribbens wrote:
>> 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.
>
> thank you !
>
> here is how far I got without something like an "include"
>
> 9 main menu items, 15 others on "thoughts"
>
> https://www.dalekelly.org/
>
> https://www.dalekelly.org/mystyle5.css
>
> menu seems to be further to the left than the pages, I like the page to 
> be centered on HOME page, pages are much worse on smart phone
>
> I think this is a CSS or <style> thing I have to look into

Just get rid of the 'margin-left: 20%' on 'div.content' - you've
already put 'text-align: center' all over the place anyway. Having
all the content inside heading tags is far from ideal though.
Re: main menu
#9
Author: Dale
Date: Wed, 28 Oct 2026 22:31
73 lines
4347 bytes
On 10/28/2026 3:03 PM, Jon Ribbens wrote:
> On 2026-10-28, Dale <dalekellytoo@gmail.com> wrote:
>> On 10/28/2026 12:02 PM, Jon Ribbens wrote:
>>> 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.
>>
>> thank you !
>>
>> here is how far I got without something like an "include"
>>
>> 9 main menu items, 15 others on "thoughts"
>>
>> https://www.dalekelly.org/
>>
>> https://www.dalekelly.org/mystyle5.css
>>
>> menu seems to be further to the left than the pages, I like the page to
>> be centered on HOME page, pages are much worse on smart phone
>>
>> I think this is a CSS or <style> thing I have to look into
> 
> Just get rid of the 'margin-left: 20%' on 'div.content' - you've
> already put 'text-align: center' all over the place anyway. Having
> all the content inside heading tags is far from ideal though.

thank you

looks much better

-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#10
Author: Dale
Date: Thu, 29 Oct 2026 00:22
93 lines
4765 bytes
On 10/28/2026 6:31 PM, Dale wrote:
> On 10/28/2026 3:03 PM, Jon Ribbens wrote:
>> On 2026-10-28, Dale <dalekellytoo@gmail.com> wrote:
>>> On 10/28/2026 12:02 PM, Jon Ribbens wrote:
>>>> 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.
>>>
>>> thank you !
>>>
>>> here is how far I got without something like an "include"
>>>
>>> 9 main menu items, 15 others on "thoughts"
>>>
>>> https://www.dalekelly.org/
>>>
>>> https://www.dalekelly.org/mystyle5.css
>>>
>>> menu seems to be further to the left than the pages, I like the page to
>>> be centered on HOME page, pages are much worse on smart phone
>>>
>>> I think this is a CSS or <style> thing I have to look into
>>
>> Just get rid of the 'margin-left: 20%' on 'div.content' - you've
>> already put 'text-align: center' all over the place anyway. Having
>> all the content inside heading tags is far from ideal though.
> 
> thank you
> 
> looks much better
> 

Got the menu on all pages.

https://www.dalekelly.org/

https://www.dalekelly.org/mystyle5.css

How can I increase the text size in this menu?

What about size/location design of things on each page?





-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#11
Author: Jon Ribbens
Date: Thu, 29 Oct 2026 01:19
90 lines
4782 bytes
On 2026-10-29, Dale <dalekellytoo@gmail.com> wrote:
> On 10/28/2026 6:31 PM, Dale wrote:
>> On 10/28/2026 3:03 PM, Jon Ribbens wrote:
>>> On 2026-10-28, Dale <dalekellytoo@gmail.com> wrote:
>>>> On 10/28/2026 12:02 PM, Jon Ribbens wrote:
>>>>> 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.
>>>>
>>>> thank you !
>>>>
>>>> here is how far I got without something like an "include"
>>>>
>>>> 9 main menu items, 15 others on "thoughts"
>>>>
>>>> https://www.dalekelly.org/
>>>>
>>>> https://www.dalekelly.org/mystyle5.css
>>>>
>>>> menu seems to be further to the left than the pages, I like the page to
>>>> be centered on HOME page, pages are much worse on smart phone
>>>>
>>>> I think this is a CSS or <style> thing I have to look into
>>>
>>> Just get rid of the 'margin-left: 20%' on 'div.content' - you've
>>> already put 'text-align: center' all over the place anyway. Having
>>> all the content inside heading tags is far from ideal though.
>> 
>> thank you
>> 
>> looks much better
>
> Got the menu on all pages.
>
> https://www.dalekelly.org/
>
> https://www.dalekelly.org/mystyle5.css
>
> How can I increase the text size in this menu?

'.dropdown-menu a { font-size: 1.2em; }' seems pretty straightforward.

> What about size/location design of things on each page?

I think you may need to do some research on that ;-)
Re: main menu
#12
Author: Dale
Date: Thu, 29 Oct 2026 01:46
103 lines
5341 bytes
On 10/28/2026 9:19 PM, Jon Ribbens wrote:
> On 2026-10-29, Dale <dalekellytoo@gmail.com> wrote:
>> On 10/28/2026 6:31 PM, Dale wrote:
>>> On 10/28/2026 3:03 PM, Jon Ribbens wrote:
>>>> On 2026-10-28, Dale <dalekellytoo@gmail.com> wrote:
>>>>> On 10/28/2026 12:02 PM, Jon Ribbens wrote:
>>>>>> 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.
>>>>>
>>>>> thank you !
>>>>>
>>>>> here is how far I got without something like an "include"
>>>>>
>>>>> 9 main menu items, 15 others on "thoughts"
>>>>>
>>>>> https://www.dalekelly.org/
>>>>>
>>>>> https://www.dalekelly.org/mystyle5.css
>>>>>
>>>>> menu seems to be further to the left than the pages, I like the page to
>>>>> be centered on HOME page, pages are much worse on smart phone
>>>>>
>>>>> I think this is a CSS or <style> thing I have to look into
>>>>
>>>> Just get rid of the 'margin-left: 20%' on 'div.content' - you've
>>>> already put 'text-align: center' all over the place anyway. Having
>>>> all the content inside heading tags is far from ideal though.
>>>
>>> thank you
>>>
>>> looks much better
>>
>> Got the menu on all pages.
>>
>> https://www.dalekelly.org/
>>
>> https://www.dalekelly.org/mystyle5.css


>>
>> How can I increase the text size in this menu?


> 
> '.dropdown-menu a { font-size: 1.2em; }' seems pretty straightforward.
> 

worked great, thank you

>> What about size/location design of things on each page?
> 
> I think you may need to do some research on that ;-)

that was part of my plan for tomorrow ;-)

-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#13
Author: Dale
Date: Sat, 31 Oct 2026 09:00
33 lines
2112 bytes
On 10/28/2026 3:05 AM, Dale wrote:
> 
> How can I do the main menu on ...
> 
> https://www.w3.org/
> 
> ?
> 
> I have seen this on a lot of sites.
> 
> I think it would be better than how I do a main menu for different sizes 
> of browser's windows.
> 
> https://www.dalekelly.org/
> 
> Looked at the code on the Chrome Browser but can't figure it out.
> 
> I have been on and doing website since mid-90's
> 
> new to javascripts
> 
> in the mid-90's cookies and scripts could cause a lot of browser window 
> pop-ups
> 


Here is where I got while doing new menu:

https://www.dalekelly.org/


-- 
Lore? -> https://www.dalekelly.org/
Re: main menu
#32
Author: Thomas 'PointedEars' Lahn
Date: Wed, 18 Nov 2026 23:18
63 lines
2688 bytes
Dale wrote:
> How can I do the main menu on ...
> 
> https://www.w3.org/
> 
> ?

There are many ways.  Most involve using a client-side framework for
which code may be generated server-side.  Usually it is generated by a CMS.

But toggling a main menu like this can be done without scripting, using
just a checkbox and CSS; e.g.:

  .nav {
    display: relative;
  }

  .nav .checkbox {
    position: absolute:
    visibility: hidden;
  }

  .nav .checkbox + .checkbox-label {
    /* appearance of the menu button when the main menu is hidden */
  }

  .nav .checkbox:checked + .checkbox-label {
    /* appearance of the menu button when the main menu is shown */
  }

  .nav .checkbox + .checkbox-label + .menu {
    display: none;
  }

  .nav .checkbox:checked + .checkbox-label + .menu {
    display: block;
  }

HTML:

  <nav class='nav'>
    <input type='checkbox' class='checkbox' id='cbMenu'>
    <label for='cbMenu' class='checkbox-label'
           title='Toggle menu'>foo</label>
    <menu class='menu'>
       <li>...</li>
    </menu>
  </nav>

> I have been on and doing website since mid-90's
> 
> new to javascripts

There is no "javascript(s)".

Given your point in the learning curve, I recommend to attempt to do it
without scripting first.  At some point you will need to learn and use
CSS anyway.
-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads