Blog formatting skills
Jul. 23rd, 2020 11:12 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I've been wanting my Dreamwidth hyperlinks to have underlines for a while, to make it easier to distinguish adjacent links from one another. Yesterday I did some research and managed to work out that one wants the "custom CSS" field for that, and found a copy of the code I would need. (Well, I found a copy of code for how to *remove* some underlines, but once I had the syntax it was easy enough to plug different things into it.)
As a bonus, while researching this I came across a guide that--among other things--describes how to make those fancy linked footnotes so you don't have to scroll back and forth trying to find your place! They're much simpler to make than I'd expected: I'd kind of assumed they required some kind of deep infrastructure and were only possible on sites that were deliberately set up to support them (I rarely see them on non-self-hosted pages, and I think the exceptions tend to be the sort of hosts that might well put effort into allowing for that). But no, it's actually pretty basic HTML.
As a bonus, while researching this I came across a guide that--among other things--describes how to make those fancy linked footnotes so you don't have to scroll back and forth trying to find your place! They're much simpler to make than I'd expected: I'd kind of assumed they required some kind of deep infrastructure and were only possible on sites that were deliberately set up to support them (I rarely see them on non-self-hosted pages, and I think the exceptions tend to be the sort of hosts that might well put effort into allowing for that). But no, it's actually pretty basic HTML.
Anchors
Date: 2020-07-23 06:36 pm (UTC)Your guide to linked footnotes is actually out of date. The modern method is to use the
id
attribute in place of the deprecatedname
attribute. Any element can have anid
attribute. Linking works exactly the same way, though.Also, if you'd ever prefer to ask a person about HTML or CSS stuff instead of trying to find a guide online, I'd be happy to discuss the subject.
Re: Anchors
Date: 2020-07-24 01:58 pm (UTC)I'll try to keep you in mind, though a lot of my trouble is with realising that HTML and/or CSS is the place to look.
Re: Anchors
Date: 2020-07-30 03:08 pm (UTC)You say this, the several more recent guides I just poked at all say this, and yet replacing "name" with "id" without changing anything else results in footnote links that don't do anything (except add an apparently meaningless anchor to the URL in the URL bar).
Re: Anchors
Date: 2020-08-01 01:31 am (UTC)id="65333fn1"
. I think Dreamwidth must have eaten it, or something? Sorry about the poor advice for your specific use case.Re: Anchors
Date: 2020-08-01 02:30 am (UTC)no subject
Date: 2020-07-24 12:00 am (UTC)