I'm currently trying to figure out how the 404 icon on this site works. It appears to be pure css without an image, but it is done entirely with one element.
After playing with the page in the chrome developers console, I found that the design appears to be related to the css content
property on the ::before
in the main div, which has the following css properties:
color: #e8e5ce;
content: "\f423";
font-size: 964px;
line-height: 0.6;
overflow: hidden;
position: absolute;
left: 7px;
top: 28px;
Changing all of them but content doesn't do anything to exciting, but altering content in any way removes the 404 pattern.
Searching for "\f423" and "\f423 404" doesn't turn up much. However, I did find this page on "css escape sequences". However, I was unable to replicate this effect on my own using the same html and css. Is this a wordpress feature? Are they somehow importing an image with css? If so, why would they do that in this manner?
Thanks!