Menu

1 / 4

Are You a CSS Developer or a CSS Expert? 9 Tests I Failed Styling a 12,400-Line Photo Editor

DEV Community: beginners·Akhouri Anmol Kumar·1 day ago
#rZCKQUoy
#devtobeginners#devto#dev#apicdock#dsapp
Reading 0:00
15s threshold

Most developers can make a button blue, centre a div and copy a flexbox cheat sheet.

CSS experts know what happens when the browser disagrees with you : when the page flashes white before it turns dark, when a phone's address bar eats the bottom of your layout, when a "simple" gradient border refuses to follow rounded corners, and when your grey text looks elegant on your monitor and invisible in sunlight.

I found out which one I was while styling APIC , a free photo editor that runs entirely in your browser: edit, convert, compress, resize and remove backgrounds, with no sign-up. It is one HTML file of about 12,400 lines , and its whole look lives in just ~1,100 lines of CSS inside it. This post is about those 1,100 lines (and the HTML around them).

Every test below is a real decision or a real bug from that file. The code is trimmed for reading, but the ideas are exactly what ships. 👇

New here? Good. This post is written for you too.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.