Coding⏱️ 1 min read📅 2026-06-02
How to Fix: nbsp not working in CSS content tag
Fix nbsp not working in CSS content tag. The issue is due to the ampersand (&) be. Step-by-step guide included.
Quick Answer: The issue is due to the ampersand (&) being interpreted as an entity. Use instead of & for a true non-breaking space.
Possible Duplicate:
Adding HTML entities using CSS content
#sitenavmenu-content-menu li:before { content: "| ";} I want to add a | and two spaces before each list item. However, for some reason it prints the word nbsp and not the space. Any ideas?
🛠️ Related Fixes
How to Fix: Stuck in tutorial hell after 4 years: How do I b
Fix Stuck in tutorial hell after 4 years: How do I bui. Practice build
How to Fix: Trying to sync mutliple audio tracks to a movie
Fix Trying to sync mutliple audio tracks to a movie bu. Consider using
How to Fix: Failed to merge latest branches from upstream re
Fix Failed to merge latest branches from upstream repo. Try running 'g