Hobby Web Dev vs AI — I Challenged ChatGPT to a CSS Battle
The results were quite surprising. One evening, I decided to pit my CSS skills against artificial intelligence in a head-to-head challenge. The idea? A CSS battle. CSS battles are coding exercises where developers recreate given designs with HTML and CSS, aiming for pixel-perfect accuracy within a limited space and time.

I have six years of CSS experience under my belt and have participated in a few CSS battles on cssbattle.dev. With ChatGPT now capable of analyzing images and generating code, I thought it’d be fun to see how it would fare in a competitive format. Could the AI replicate designs as accurately and efficiently as a human?
The Challenge
To create a fair challenge, I followed a straightforward process: I selected two CSS Battle challenges of varying difficulty — one “easy” and one “moderate.” These designs ranged from simple shapes to slightly more intricate layouts.
Challenge 1: Easy
I tackled the first challenge, which was categorized as “easy.” The design consisted of basic shapes and minimal styling elements. As an experienced developer, I quickly translated the design into clean HTML and CSS code, ensuring precision and accuracy.

Challenge 2: Moderate
For the second challenge, labeled as “moderate,” the design complexity increased. It involved more intricate shapes, gradients, and animations. This challenge tested not only my CSS proficiency but also my creativity in solving complex layout problems.
Overall, the CSS battle against AI was an intriguing experiment that showcased the capabilities of both human developers and artificial intelligence in the realm of front-end development.

Want to read more coding tutorials and news? Visit the developer homepage at gitconnected.com, skilled.dev, and levelup.dev.