Surely searching "centre a div" takes less time than prompting and waiting for a response...
If only it were that easy. I got really good at centering and aligning stuff, but only when the application is constructed in the way I expect. This is usually not a problem as I'm usually working on something I built myself, but if I need to make a tweak to something I didn't build, I frequently find myself frustrated and irritated, especially when there is some higher or lower level that is overriding the setting I just added.
As a bonus, I pay attention to what the AI did and its results, and I have actually learned quite a bit about how to do this myself even without AI assistance
Search “centre a div” in Google
Wade through ads
Skim a treatise on the history of centering content
Skim over the “this question is off topic / duplicate” noise if Stack Overflow
Find some code on the page
Try to map how that code will work in the context of your other layout
Realize it’s plain CSS and you’re looking for Tailwind
Keep searching
Try some stuff until it works
Or…
Ask LLM. Wait 20-30 seconds. Move on to the next thing.