2024-02-22 - Getting Colours to Work in Links2.
If you try to visit this site using the webbrowser Links2 [links2] ,you'll see that the colour-theme that you see in, say FireFox or such is by-and-large the same.
This might seem like magic, if you ever have tried to do the same using CSS... as you'll probobly just get a gray background, black text and blue links.
The trick is to use ancient, html attributes for the <body>
tag
[body-tag] .
The attribuses I'm abusing are as follows:
color
, bgcolor
, link
,
vlink
, and alink
. These atrributes are ingored
by other browsers if they you have a CSS avalible.
<body>
tag in the code yourself,
or you can have a look below:
<body text="white" bgcolor="#151515" link="orange" vlink="darkorange" alink="gold">
And bob's-your-uncle, colours everywhere!
An image of what it looks like in Links2 can be found here.
Gustav.
Footnotes
- [links2]
-
http://links.twibright.com/
https://salsa.debian.org/debian/links2 - Debian's sauce repo. - [body-tag]
-
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
As you can see, they are marked as "do not use". :-)