Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Never give in. Never give in. Never. Never. Never." -- Winston Churchill


devel / comp.infosystems.www.authoring.stylesheets / Re: No background color for sticky first line when scrolling to right

SubjectAuthor
* No background color for sticky first line when scrolling to rightRobert Prins
`* Re: No background color for sticky first line when scrolling to rightBen Bacarisse
 `* Re: No background color for sticky first line when scrolling to rightApd
  `* Re: No background color for sticky first line when scrolling to rightRobert Prins
   +* Re: No background color for sticky first line when scrolling to rightApd
   |`- Re: No background color for sticky first line when scrolling to rightRobert Prins
   `* Highlight target/Scroll to top-of-page [Was: No background color forRobert Prins
    `* Re: Highlight target/Scroll to top-of-pageApd
     `- Re: Highlight target/Scroll to top-of-pageRobert Prins

1
No background color for sticky first line when scrolling to right

<u0et1t$314te$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=332&group=comp.infosystems.www.authoring.stylesheets#332

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: rob...@prino.org (Robert Prins)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: No background color for sticky first line when scrolling to right
Date: Mon, 3 Apr 2023 18:57:56 +0000
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <u0et1t$314te$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 3 Apr 2023 15:57:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bc983bf3ab87c1d3f3c2c88c680ddb7b";
logging-data="3183534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EGcpWz+9HR9cdLSpLHZvl"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:IWlG37M0rqb8qhQqvU8df/izcek=
Content-Language: en-US
 by: Robert Prins - Mon, 3 Apr 2023 18:57 UTC

I added a sticky first line to a dump file,

<https://prino.neocities.org/@temp/dump.html>,

to make it a bit easier to see what's where, but for some reason, the background
color for the sticky part only extends to what's visible, and not the part that
scrolls right into view.

Resizing the font and reloading does color the whole top...

What am I doing wrong?
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather @ https://prino.neocities.org/
Some useful(?) REXX @ https://prino.neocities.org/zOS/zOS-Tools.html

Re: No background color for sticky first line when scrolling to right

<87v8icznoy.fsf@bsb.me.uk>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=333&group=comp.infosystems.www.authoring.stylesheets#333

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: No background color for sticky first line when scrolling to right
Date: Mon, 03 Apr 2023 21:59:57 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <87v8icznoy.fsf@bsb.me.uk>
References: <u0et1t$314te$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="039d591d061799303411c3c978215ee3";
logging-data="3268936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dWjgllHz/gFKXttcbd0jhVmxSkG1I5gQ="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:T4r4r2RrHXPnnlh6woXsXhgfmcU=
sha1:kaPkll6iUyqhPPIqbCWymus+2v4=
X-BSB-Auth: 1.38d0e30080668fc6a23c.20230403215957BST.87v8icznoy.fsf@bsb.me.uk
 by: Ben Bacarisse - Mon, 3 Apr 2023 20:59 UTC

Robert Prins <robert@prino.org> writes:

> I added a sticky first line to a dump file,
>
> <https://prino.neocities.org/@temp/dump.html>,
>
> to make it a bit easier to see what's where, but for some reason, the
> background color for the sticky part only extends to what's visible, and not
> the part that scrolls right into view.
>
> Resizing the font and reloading does color the whole top...
>
> What am I doing wrong?

Add width: fit-content; to the style.

--
Ben.

Re: No background color for sticky first line when scrolling to right

<u0fg6d$33ukk$1@apd.eternal-september.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=334&group=comp.infosystems.www.authoring.stylesheets#334

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!apd.eternal-september.org!.POSTED!not-for-mail
From: not...@all.invalid (Apd)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: No background color for sticky first line when scrolling to right
Date: Mon, 3 Apr 2023 22:24:06 +0100
Organization: ad hoc
Lines: 24
Message-ID: <u0fg6d$33ukk$1@apd.eternal-september.org>
References: <u0et1t$314te$1@dont-email.me> <87v8icznoy.fsf@bsb.me.uk>
Injection-Date: Mon, 3 Apr 2023 21:24:29 -0000 (UTC)
Injection-Info: apd.eternal-september.org; posting-host="544ac4ba1ecd9c7af3412289ea6ddb6a";
logging-data="3275412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vcY9ej6X1robN8myIrY8R"
Cancel-Lock: sha1:I4Z4W7xrgRippAgRKAasJvHnJ90=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: Apd - Mon, 3 Apr 2023 21:24 UTC

"Ben Bacarisse" wrote:
> Robert Prins writes:
>> I added a sticky first line to a dump file,
>>
>> <https://prino.neocities.org/@temp/dump.html>,
>>
>> to make it a bit easier to see what's where, but for some reason, the
>> background color for the sticky part only extends to what's visible,
>> and not the part that scrolls right into view.
>>
>> Resizing the font and reloading does color the whole top...
>>
>> What am I doing wrong?
>
> Add width: fit-content; to the style.

That didn't work in Firefox but for some strange reason this did:

display: inline;

It doesn't mess up the "pre" formatting but he might want to add a
margin to the "div".

Re: No background color for sticky first line when scrolling to right

<u0ghlk$3b6vh$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=335&group=comp.infosystems.www.authoring.stylesheets#335

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: rob...@prino.org (Robert Prins)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: No background color for sticky first line when scrolling to right
Date: Tue, 4 Apr 2023 09:55:52 +0000
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <u0ghlk$3b6vh$1@dont-email.me>
References: <u0et1t$314te$1@dont-email.me> <87v8icznoy.fsf@bsb.me.uk>
<u0fg6d$33ukk$1@apd.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 4 Apr 2023 06:55:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0df53b4aa837bca7ed07d1439330f77b";
logging-data="3513329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sk7QFx/45tbGybV0iJra3"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:OZ0xWhsmfzPVDRdke5M3X7wQob8=
Content-Language: nl, en-GB
In-Reply-To: <u0fg6d$33ukk$1@apd.eternal-september.org>
 by: Robert Prins - Tue, 4 Apr 2023 09:55 UTC

On 2023-04-03 21:24, Apd wrote:
> "Ben Bacarisse" wrote:
>> Robert Prins writes:
>>> I added a sticky first line to a dump file,
>>>
>>> <https://prino.neocities.org/@temp/dump.html>,
>>>
>>> to make it a bit easier to see what's where, but for some reason, the
>>> background color for the sticky part only extends to what's visible,
>>> and not the part that scrolls right into view.
>>>
>>> Resizing the font and reloading does color the whole top...
>>>
>>> What am I doing wrong?
>>
>> Add width: fit-content; to the style.
>
> That didn't work in Firefox but for some strange reason this did:
>
> display: inline;
>
> It doesn't mess up the "pre" formatting but he might want to add a
> margin to the "div".

Actually, the "width: fit-content;" does work in FF (111.0.1 64-bit)

Robert
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather - https://prino.neocities.org/
Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html

Re: No background color for sticky first line when scrolling to right

<u0gmud$3bvn9$1@apd.eternal-september.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=336&group=comp.infosystems.www.authoring.stylesheets#336

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!apd.eternal-september.org!.POSTED!not-for-mail
From: not...@all.invalid (Apd)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: No background color for sticky first line when scrolling to right
Date: Tue, 4 Apr 2023 09:25:30 +0100
Organization: ad hoc
Lines: 22
Message-ID: <u0gmud$3bvn9$1@apd.eternal-september.org>
References: <u0et1t$314te$1@dont-email.me> <87v8icznoy.fsf@bsb.me.uk> <u0fg6d$33ukk$1@apd.eternal-september.org> <u0ghlk$3b6vh$1@dont-email.me>
Injection-Date: Tue, 4 Apr 2023 08:25:49 -0000 (UTC)
Injection-Info: apd.eternal-september.org; posting-host="7a821787c798f13a4b461f38674ed43a";
logging-data="3538665"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yNFFnJ2jY7RRmXvom9Y1l"
Cancel-Lock: sha1:ccDAXfjjTahgvvc682eQcIz7JpY=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
 by: Apd - Tue, 4 Apr 2023 08:25 UTC

"Robert Prins" wrote:
> On 2023-04-03 21:24, Apd wrote:
>> "Ben Bacarisse" wrote:
>>> Add width: fit-content; to the style.
>>
>> That didn't work in Firefox but for some strange reason this did:
>>
>> display: inline;
>>
>> It doesn't mess up the "pre" formatting but he might want to add a
>> margin to the "div".
>
> Actually, the "width: fit-content;" does work in FF (111.0.1 64-bit)

Ok, mine's an older version. Other browsers may vary.

BTW, your date is in the future. From your header:

Date: Tue, 4 Apr 2023 09:55:52 +0000
Injection-Date: Tue, 4 Apr 2023 06:55:48 -0000 (UTC)

Re: No background color for sticky first line when scrolling to right

<u0hgrb$3fi7a$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=337&group=comp.infosystems.www.authoring.stylesheets#337

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: rob...@prino.org (Robert Prins)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: No background color for sticky first line when scrolling to right
Date: Tue, 4 Apr 2023 18:48:05 +0000
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <u0hgrb$3fi7a$1@dont-email.me>
References: <u0et1t$314te$1@dont-email.me> <87v8icznoy.fsf@bsb.me.uk>
<u0fg6d$33ukk$1@apd.eternal-september.org> <u0ghlk$3b6vh$1@dont-email.me>
<u0gmud$3bvn9$1@apd.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 4 Apr 2023 15:47:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0df53b4aa837bca7ed07d1439330f77b";
logging-data="3655914"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IlGkos6cIOX+7wDG+2Emg"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:m1Z/S2jWs4uvJoNUAcJlWcbaujk=
Content-Language: en-US
In-Reply-To: <u0gmud$3bvn9$1@apd.eternal-september.org>
 by: Robert Prins - Tue, 4 Apr 2023 18:48 UTC

On 2023-04-04 08:25, Apd wrote:
> "Robert Prins" wrote:
>> On 2023-04-03 21:24, Apd wrote:
>>> "Ben Bacarisse" wrote:
>>>> Add width: fit-content; to the style.
>>>
>>> That didn't work in Firefox but for some strange reason this did:
>>>
>>> display: inline;
>>>
>>> It doesn't mess up the "pre" formatting but he might want to add a
>>> margin to the "div".
>>
>> Actually, the "width: fit-content;" does work in FF (111.0.1 64-bit)
>
> Ok, mine's an older version. Other browsers may vary.
>
> BTW, your date is in the future. From your header:
>
> Date: Tue, 4 Apr 2023 09:55:52 +0000
> Injection-Date: Tue, 4 Apr 2023 06:55:48 -0000 (UTC)

Yes & no.

I use UTC as I'm getting sick and tired of the displayed times of files changing
when I move between time zones and/or change between summer- and winter time,
and/or when I unpack archives.

Robert
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather @ https://prino.neocities.org/
Some useful(?) REXX @ https://prino.neocities.org/zOS/zOS-Tools.html

Highlight target/Scroll to top-of-page [Was: No background color for sticky first line when scrolling to right]

<u0jcr3$3r4f4$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=338&group=comp.infosystems.www.authoring.stylesheets#338

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: rob...@prino.org (Robert Prins)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Highlight target/Scroll to top-of-page [Was: No background color for
sticky first line when scrolling to right]
Date: Wed, 5 Apr 2023 11:51:54 +0000
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <u0jcr3$3r4f4$1@dont-email.me>
References: <u0et1t$314te$1@dont-email.me> <87v8icznoy.fsf@bsb.me.uk>
<u0fg6d$33ukk$1@apd.eternal-september.org> <u0ghlk$3b6vh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 5 Apr 2023 08:51:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="560d7968e1df1f7bbe99e2665e6ceaaa";
logging-data="4035044"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AntSsvbP8EqnsnQ6wwaAC"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:90A12IAeQCSIee4CISzrbdYs7ug=
Content-Language: nl, en-GB
In-Reply-To: <u0ghlk$3b6vh$1@dont-email.me>
 by: Robert Prins - Wed, 5 Apr 2023 11:51 UTC

On 2023-04-04 09:55, Robert Prins wrote:
> On 2023-04-03 21:24, Apd wrote:
>> "Ben Bacarisse" wrote:
>>> Robert Prins writes:
>>>> I added a sticky first line to a dump file,
>>>>
>>>> <https://prino.neocities.org/@temp/dump.html>,
>>>>
>>>> to make it a bit easier to see what's where, but for some reason, the
>>>> background color for the sticky part only extends to what's visible,
>>>> and not the part that scrolls right into view.
>>>>
>>>> Resizing the font and reloading does color the whole top...
>>>>
>>>> What am I doing wrong?
>>>
>>> Add width: fit-content; to the style.
>>
>> That didn't work in Firefox but for some strange reason this did:
>>
>>   display: inline;
>>
>> It doesn't mess up the "pre" formatting but he might want to add a
>> margin to the "div".
>
> Actually, the "width: fit-content;" does work in FF (111.0.1 64-bit)

This all works swell, however, I now have two other problems:

1) Ctrl-PgUp no longer works, as the top-of-page is already at the top, and

2) If I use the ":target" pseudo-selector, it does highlight the target, but it
also scrolls it behind the fixed sticky line (unless I'm somewhere at the very
bottom). Tried using two <div>'s to split the <body> added a "top:1" to the
"target" CSS, but that doesn't change anything, so any clues how I can solve
these ones?

Robert

--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather - https://prino.neocities.org/
Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html

Re: Highlight target/Scroll to top-of-page

<u0k282$3u94r$1@apd.eternal-september.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=339&group=comp.infosystems.www.authoring.stylesheets#339

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!apd.eternal-september.org!.POSTED!not-for-mail
From: not...@all.invalid (Apd)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: Highlight target/Scroll to top-of-page
Date: Wed, 5 Apr 2023 15:56:16 +0100
Organization: ad hoc
Lines: 17
Message-ID: <u0k282$3u94r$1@apd.eternal-september.org>
References: <u0et1t$314te$1@dont-email.me> <87v8icznoy.fsf@bsb.me.uk> <u0fg6d$33ukk$1@apd.eternal-september.org> <u0ghlk$3b6vh$1@dont-email.me> <u0jcr3$3r4f4$1@dont-email.me>
Injection-Date: Wed, 5 Apr 2023 14:57:06 -0000 (UTC)
Injection-Info: apd.eternal-september.org; posting-host="6f7c2fce8dcc1d5f5b6b67cbd7572f15";
logging-data="4138139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19il9JZi6cRpGUx3JlBSBVF"
Cancel-Lock: sha1:EqrCi5SQ4m98oUQEfPXNJO1AYt4=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
X-Priority: 3
 by: Apd - Wed, 5 Apr 2023 14:56 UTC

"Robert Prins" wrote:
> This all works swell, however, I now have two other problems:
>
> 1) Ctrl-PgUp no longer works, as the top-of-page is already at the top

Pgup, pgdn, home and end work as expected without the "ctrl" modifier.

> 2) If I use the ":target" pseudo-selector, it does highlight the target,
> but it also scrolls it behind the fixed sticky line (unless I'm somewhere
> at the very bottom). Tried using two <div>'s to split the <body> added a
> "top:1" to the "target" CSS, but that doesn't change anything, so any
> clues how I can solve these ones?

A couple of ways here:
<https://getpublii.com/blog/one-line-css-solution-to-prevent-anchor-links-from-scrolling-behind-a-sticky-header.html>

Re: Highlight target/Scroll to top-of-page

<u0kdsg$3vuum$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=340&group=comp.infosystems.www.authoring.stylesheets#340

 copy link   Newsgroups: comp.infosystems.www.authoring.html comp.infosystems.www.authoring.stylesheets
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: rob...@prino.org (Robert Prins)
Newsgroups: comp.infosystems.www.authoring.html,comp.infosystems.www.authoring.stylesheets
Subject: Re: Highlight target/Scroll to top-of-page
Date: Wed, 5 Apr 2023 21:15:52 +0000
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u0kdsg$3vuum$1@dont-email.me>
References: <u0et1t$314te$1@dont-email.me> <87v8icznoy.fsf@bsb.me.uk>
<u0fg6d$33ukk$1@apd.eternal-september.org> <u0ghlk$3b6vh$1@dont-email.me>
<u0jcr3$3r4f4$1@dont-email.me> <u0k282$3u94r$1@apd.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 5 Apr 2023 18:15:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="560d7968e1df1f7bbe99e2665e6ceaaa";
logging-data="4193238"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+e+PRPIjpep2vUOfmoo3gH"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:UsqOeRWZP06E5sJub6q6VEmKIXU=
In-Reply-To: <u0k282$3u94r$1@apd.eternal-september.org>
Content-Language: nl, en-GB
 by: Robert Prins - Wed, 5 Apr 2023 21:15 UTC

On 2023-04-05 14:56, Apd wrote:
> "Robert Prins" wrote:
>> This all works swell, however, I now have two other problems:
>>
>> 1) Ctrl-PgUp no longer works, as the top-of-page is already at the top
>
> Pgup, pgdn, home and end work as expected without the "ctrl" modifier.

Should have been Ctrl-Home, which doesn't do anything.

>> 2) If I use the ":target" pseudo-selector, it does highlight the target,
>> but it also scrolls it behind the fixed sticky line (unless I'm somewhere
>> at the very bottom). Tried using two <div>'s to split the <body> added a
>> "top:1" to the "target" CSS, but that doesn't change anything, so any
>> clues how I can solve these ones?
>
> A couple of ways here:
> <https://getpublii.com/blog/one-line-css-solution-to-prevent-anchor-links-from-scrolling-behind-a-sticky-header.html>

Almost PL/I, where there are usually also several ways to skin a cat. ;)

Thanks,

Robert
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather - https://prino.neocities.org/
Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor