søren peter mørch

Timeline

Recent posts from feeds followed by sorenpeter@darch.dk

lyse (lyse.isobeef.org)

@movq Congrats, how did you break it? :-)

In reply to: #735o27q 5 months ago
movq (www.uninformativ.de)

Damn, I broke my Atom feed (and a reader let me know, that’s cool!).

I run vnu on all HTML and CSS files after each build of the website, but I don’t run a feed validator. 😬 Time to change that.

Read replies 5 months ago
lyse (lyse.isobeef.org) Read replies 5 months ago
lyse (lyse.isobeef.org)

@movq Good idea, I should probably do the same for my photo galleries.

In reply to: #cbq7yna 5 months ago
lyse (lyse.isobeef.org)

@movq Yes, that's what I was thinking, too. For a moment, I wanted to suggest to use <ol> instead of <ul> to fix that. However, that's only gonna work for the first level, but subsections then miss their parent level.

And it turns out that I was wrong. At least sort of. There are some CSS tricks to fix it: https://stackoverflow.com/a/26243681 Of course, with text or retro browsers, this is not gonna fly.

I also came across this interesting article. I just skimmed it and it's about real tables of contents with page numbers, so not what you have in mind, but cool nevertheless: https://css-tricks.com/a-perfect-table-of-contents-with-html-css/

In reply to: #mcgla6a 5 months ago
movq (www.uninformativ.de)

I complain about this a lot:

https://movq.de/v/e7cb49eefb/hiccupfx

But to be honest, my blog did the same thing – to some degree.

This is fixed now. The trick is to add width and height to all <img> tags. That way, modern browsers know how much space to reserve for the image. Without this, they just reserve zero space, so when the image finally loads, you get jumpy layout.

This effect is even worse when you use <img loading="lazy"> – which I can finally use, now that the jumpy layout has been fixed. 🥳

Read replies 5 months ago
movq (www.uninformativ.de)

@lyse It was a wild ride for sure. 😂

In reply to: #yyob6vq 5 months ago
movq (www.uninformativ.de)

@lyse Besides, have a look at https://movq.de/v/cf0903ebc3/numb.png again: When it goes from item 9 to item 10, the indentation of the text (after the number) changes. Pretty ugly. In other words, a table of contents should be a table, not a list like it is at the moment. And that would require me to write my own extension for python-markdown … Probably not worth it.

In reply to: #tzc5jpa 5 months ago
movq (www.uninformativ.de)

@lyse Mhm, yeah … I’ll probably not do it. Just keeping the numbers out of the anchors would be pretty hacky, I guess.

In reply to: #tzc5jpa 5 months ago
lyse (lyse.isobeef.org)

@movq Oh my goodness, what an adventure, hahaha! :-) https://movq.de/blog/postings/2026-06-25/0/POSTING-en.html

Read replies 5 months ago
Reply via email