31st August 2021

HTML Anchor Highlighting

In Alexander Six's blog I saw that you can highlight HTML anchor text with a skewed bar. Below is the solution I use in this blog. I am still struggling with my own requirement that the skeyY angle is dependent on the length of the anchor string. Currently I do not know how I can find this out.

Another similar idea from RoccoP is below:

Below animation by Ana Tudor shows how skewX and skewY work in CSS. Press on HTML button to see the result.




Categories: web
Tags: CSS
Author: Elmar Klausmeier