CodeSOD: Preformatted
· remy porter
AI Briefing
- The CodeSOD series discusses a PHP code that replaces <pre><code> tags with <pre> tags, causing formatting issues.
- The author criticizes the practice of clearing default browser stylesheet rules and replacing them with custom ones, which can lead to cross-browser rendering quirks.
- The author reminisces about a redesign of the site that resulted in monospace formatting for pre content, which is a semantic issue with HTML.
Advertisement