From Newsgroup: alt.html
On 9/21/2025 10:29 AM, Jonathan N. Little wrote:
Dale wrote:
Hi ,
My CSS adjusts the main menu of my site depending on browser window size.
https://www.dalekelly.org/
https://www.dalekelly.org/mystyle2.css
There are three CSS sizes:
(1) computer
(2) pad
(3) smartphone
No problem with (1), (2) or (3) menus alone.
No problem with reducing the window size of (2) to (3).
The problem I have is when I am reducing the window size of (1) to (2).
When I am getting (1) close to (2) the image blocks some of the menu.
And the other parts of the page are somewhat under the menu.
In my CSS I adjust image sizes based on browser window size. This not
functioning may be the reason the image is blocking some of the menu.
Do not witness such behavior. Maybe you are using an obsolete browser?
The page breaks only using a legacy SeaMonkey browser which many sites
break because it does not support much of the newer CSS and HTML.
BTW, I had a typo in my example css which you copied:
.pin {
position: absolute;
display: inline-block;
color: hsl(0, 0%, 0%);
background-color: hsla(0, 0%, 90%, 570%);
padding: .25em;
border-radius: 10px;
min-width: 1.5em;
text-align: center;
}
background-color should be with the final value 57% not 570%:
background-color: hsla(0, 0%, 90%, 57%);
Thank You Again !
Happens with these web browsers:
Chrome - Version 140.0.7339.186 (Official Build) (64-bit)
Edge - Version 140.0.3485.81 (Official build) (64-bit)
Firefox - 143.0.1 (64-bit)
Wave - Version 1.5.21.2 (Official Build) (64-bit)
Updated all those browsers and restarted them.
Using Windows 10: 19045.6332
Did your change:
background-color: hsla(0, 0%, 90%, 57%);
Still has my coding error.
The colors of the icons on the image seem to have changed. I like it.
But that wasn't the my coding error.
When I adjust the size of the computer browser window along the way from
a computer size to a pad size, the image starts to cover the vertical
menu on the way to the horizontal menu.
Some of the text gets covered by the vertical menu on the way to the horizontal menu.
Here are the files again:
https://www.dalekelly.org/
https://www.dalekelly.org/mystyle2.css
Thank You Again !
--
Mystery? ->
https://www.dalekelly.org/
--- Synchronet 3.21a-Linux NewsLink 1.2