Coding⏱️ 1 min read📅 2026-05-31
How to Fix: nbsp not working in CSS content tag
CSS content property issue with non-breaking space (nbsp) not displaying correctly.
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
Learn to build websites and think independently with coding skills.
How to Fix: Trying to sync mutliple audio tracks to a movie
Complex audio track synchronization can be challenging due to the larg
How to Fix: Failed to merge latest branches from upstream re
Update local repository with latest upstream branches.