Problem Solving Blog

Steps One and Two

1. Blocked on a Simple Problem

My main.css stylesheet was a mess of duplicate classes and styles that I had used over different pages. I also noticed that I had a bunch of error messages in my code. The first thing I did was to go through the code and isolate the error messages. For example:

It was a great feeling once I had saved my work to see main turn from red!

The lesson I took from this was to pause and check things carefully (particularly with CSS). With JavaScript, if something's not working I think I will realise that there is an error and I cna troubleshoot, but CSS is more subtle. I also learned that when I build multi-page websites, I should treat them as parts of a whole rather than separate entities.

2. Elegantly Solved a Problem

Once the obvious errors were fixed, I turned to improving the structure of my stylesheet. These are the changes that I made:

This felt much more elegant, and I was really satisfied with the cleaner result.

3. Reflection on Problem-Solving Techniques

I feel confident using:

I haven't yet had to, but I feel okay about:

And finally, I've learned the value of: