Article note: #smarthint!

The problem: you click a jump link like <a href="#header-3">Jump</a> which links to something like <h3 id="header-3">Header</h3>. That's totally fine, until you have a position: fixed; header at the top of the page obscuring the header you're trying to link to!

Fixed headers have a nasty habit of hiding the element you're trying to link to.

There used to be all kinds of wild hacks to get around this problem. In fact, in the design of CSS-Tricks as I write, I was like, "Screw it, I'll just have a big generous padding-top on my in-article headers because I don't mind that look anyway."

But there is actually a really straightforward way of handling this in CSS now.

h3 {
  scroll-margin-top: 5rem; /* whatever is a nice number that gets you past the header */
}

We have an Almanac article on it, which includes browser support, which is essentially everywhere. It's often talked about in conjunction with scroll snapping, but I find this use case even more practical.

Here's a simple demo:

In a related vein, that weird (but cool) "text fragments" link that Chrome shipped takes you to the middle of the page instead, which I think is nice.

The post Fixed Headers and Jump Links? The Solution is scroll-margin-top appeared first on CSS-Tricks.

Article note: #mrc!

GDPR, DSGVO, etc.

Old but not bus­ted … – Die­ser Inhalt wur­de vor mehr als 13 Jah­ren publi­ziert. Die Kor­rekt­heit und Ver­füg­bar­keit von Links kön­nen lei­der nicht gewähr­leis­tet werden.

Auch, wenn das The­ma nicht mehr ganz so ‘heiß’ ist, wie noch am Anfang des Semes­ters, so will ich trotz­dem noch­mal dar­auf hin­wei­sen, dass sich am Fach­be­reich Infor­ma­ti­ons­wis­sen­schaf­ten – und spe­zi­ell in mei­nem aktu­el­len Stu­di­en­gang “Infor­ma­ti­on und Doku­men­ta­ti­on” – in der Fach­hoch­schu­le Pots­dam etwas “in Bewe­gung” ist.

Seit knapp vier Wochen gibt es auch eine offi­zi­el­le Stel­lung­nah­me des (neu­en) Dekans Prof. Dr. Gün­ther Neher. – Wer jedoch wis­sen möch­te, was die zwei Mona­te vor­her so online los war, der kann mal auf die Link­samm­lung zur “Umstruk­tu­rie­rung” im Wiki des Stu­Ra FB5 gehen.

.oO(Irgend wie passt das auch ganz gut zu mei­nen schwur­be­li­gen Gedan­ken zum Mas­ter, die ich neu­lich hier schon schrieb…)

Old but not bus­ted … – Die­ser Inhalt wur­de vor mehr als 13 Jah­ren publi­ziert. Die Kor­rekt­heit und Ver­füg­bar­keit von Links kön­nen lei­der nicht gewähr­leis­tet werden.

Heu­te fin­det in der Fach­hoch­schu­le Pots­dam – durch den Fach­be­reich Infor­ma­ti­ons­wis­sen­schaf­ten – der 2. “I‑Science Day” unter dem Mot­to “Digi­ta­le Gesell­schaft: vom Web 2.0 zum seman­ti­schen und visu­el­len Web 3.0” statt.

Im Fol­gen­den habe ich zu die­ser Ver­an­stal­tung eini­ge infor­ma­ti­ve (und net­te) (Aggregations-)Links zusammengetragen:

Mal schau­en, ob da noch wel­che dazu kom­men wer­den… *viel­spaß!*