4 ms·
Hey I literally just built one of these! Web Inspector is going to be your friend moving forward. Find a major site that's built one, inspect the code, and lear
by notjustanymike 4y ago
Hey I literally just built one of these! Web Inspector is going to be your friend moving forward. Find a major site that's built one, inspect the code, and learn how the pros do it (top tip: not all pros do it right, so find multiple examples).
Then try out different approaches. As you get further along in CSS, the thought "huh that didn't work, what about..." will become quite familiar to you. After a while you'll build up a stable of tools: flexbox, grid, absolutely position a pseudo:after element, making use of calc for things like calc(50% - 4px), and so on.
CSS feels a lot like painting, there's different techniques depending on what you're putting on canvas. You're done with school, now time to study the masters.