W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: CSS events

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Tue, 15 Dec 2015 22:16:25 +1100
Message-ID: <CAMdq699yikTrvP-xjBP3wKzdvG-ECwaSsdpgydZje3EoPM28TA@mail.gmail.com>
To: Nicolas Duclos <dunic777@hotmail.com>
Cc: www-style list <www-style@w3.org>
On Tue, Dec 15, 2015 at 11:04 AM, Nicolas Duclos <dunic777@hotmail.com> wrote:
>
> On some website, you can see a navigation bar that become fixed after you
> scroll down a certain height. With this new CSS option, it could be possible
> only with CSS instead of Javascript (AFFIX, etc.).

Just use "position: sticky" for this usecase.

- Xidorn
Received on Tuesday, 15 December 2015 11:17:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:59 UTC