← #27 Use negative nth-child and nth-last-child
#28

Set content for an empty link

Topics: CSS

For a link whose content is empty, we can replace the content with the href attribute:

a[href^="http"]:empty:before {
content: attr(href);
}

Demo

Fix a typo or suggest an improvement
#29 Separate list items