CSS, Responsive Design, Flexbox, and Grid
During the last two weeks, I have learned more about CSS, especially responsive design and how to organize elements on a webpage. We worked on different challenges, including the Sacramento Writer’s Group and Zen Music Festival. These assignments helped me understand how CSS controls the layout, spacing, colors, images, and positioning of elements on different screen sizes.
One of the most important things I learned was mobile-first design. Instead of starting with a desktop layout, we start with the mobile version and then use media queries to adjust the design for larger screens. I also practiced using margin, padding, max-width, and box-sizing to control spacing and make the layout more organized.
In the Sacramento Writer’s Group challenge, I had difficulty styling the top navigation and positioning the date correctly. I tried different CSS properties to get the elements in the right places. In the Zen Music Festival challenge, I had fewer problems, but the background image took me a long time to figure out. Eventually, I realized that I had mistyped the image filename. This reminded me how important it is to check small details in my code.
Another important topic was Flexbox and CSS Grid. I learned that Flexbox helps arrange elements in rows or columns, while Grid is useful for creating layouts with multiple rows and columns. We also practiced replacing older float-based layouts with Flexbox and Grid. I am beginning to understand why these modern CSS methods make layouts easier to control.
I also learned more about CSS selectors and organizing styles. Using the correct selectors helps me apply styles to specific elements without affecting everything else on the page. I practiced adjusting widths, alignment, spacing, and navigation to make webpages look more consistent.
After comparing my CSS with the instructor’s solutions, I noticed that some of my code was different and more complicated than necessary. I learned that there can be more than one way to achieve the same result, but writing cleaner and simpler CSS makes it easier to understand and maintain.
My Reflection:

Although I still struggle with positioning, spacing, and remembering which CSS properties to use, I feel that I am slowly improving. Sometimes I spend hours trying to fix one small issue, which can be frustrating. However, each challenge teaches me something new. I have also learned that checking my code carefully and comparing different solutions can help me understand my mistakes.