BLOG 03

When CSS Started Making Sense

Understanding layouts, spacing, styling and the relationships between elements.

HTML gave my websites structure, but CSS was when they started looking like actual websites.

This was probably one of the stages where I learnt the most about how webpages are laid out.

I started with the basics: selectors, classes, colours, fonts, margins, padding and the box model.

Then I started getting deeper into layouts.

Flexbox was one of the concepts that changed the way I thought about positioning elements. Instead of trying to force elements into specific positions, I could control how elements were arranged inside a container.

I also learnt about positioning, spacing, gap, different units, typography, pseudo-classes, transitions, animations and CSS variables.

DevTools became another important part of learning CSS.

Instead of constantly changing my code and refreshing the page without knowing what was happening, I could inspect an element, see its styles and experiment with different values directly in the browser.

I also started learning more about accessibility, including colour contrast and making sure text could actually be read against its background.

One thing I gradually realized was that CSS isn't really about memorising hundreds of properties.

It's more about understanding how the properties affect the relationship between elements.

For example, learning display: flex wasn't just learning another CSS property. It was learning a completely different way of thinking about layouts.

The more I practiced, the more comfortable I became.

But I also discovered that being comfortable with CSS on my own screen didn't necessarily mean I knew how to build a website that worked everywhere.

That would become my next big challenge.