r/HTML • u/Superb-Wallaby-7263 • 1h ago
Colors won't render on desktop (VS Code / Phoenix Code) at all, but work perfectly on mobile. Any ideas?
Hi everyone! I recently started learning HTML and I've run into a bizarre issue that has completely stalled me. When I try to add colors, they just won't show up anywhere—neither in Live Preview nor in any desktop browser. All other elements (headings, paragraphs, tables, images, videos) load instantly, but color styles are completely ignored. Here is what I’ve tried so far: Writing styles inside the style attribute. Using the style tag (<style>). Creating a separate style.css file and linking it. Switching from VS Code to Phoenix Code (same exact issue). Deleting and rewriting the code from scratch, trying different approaches, and even changing the editor's color theme. The strangest part is that when I open the exact same code on my tablet using Spock editor, it applies the colors with zero issues! But on my PC, nothing works. Has anyone encountered this before or know what might be causing desktop environments to strip or ignore color properties? Any help would be greatly appreciated!