I looked at my code for so long that I couldn’t see it with fresh eyes despite leaving it for 24 hours before coming back to it.
Many of my errors were simply carelessness - which I must guard against. Clearly, though, I need to re-learn the box model lessons or - more importantly - keep them in mind as I design.
Your generosity continues to amaze me. “Thank you!” seems inadequate.
I developed the process of writing comments in my CSS and HTML code (mostly CSS) to explain to myself what a line does. When that doesn’t get me through to a solution, I now compose a question to an AI that includes the CSS and the HTML that addresses it. About half the time, I find that simply adding the comments and forming the question gets me to an answer. But, the other half of the time, when I can’t find fresh ways to approach an issue, I rely on forums - usually SitePoint - to get an answer or at least a new perspective.
I guess I’ll start calling the process my rubber duck.