Why doesn't my alert box center horizontally on the page?
Without the 'mx-auto' class, the alert box uses default block alignment which is left-aligned. Adding 'mx-auto' sets left and right margins to auto, centering the box horizontally as shown in render_step 2.
💡 Use 'mx-auto' with a max-width to center block elements horizontally.
Why is my icon not vertically aligned with the alert text?
Without 'items-center' on the flex container, flex items align to the start by default, causing vertical misalignment. Adding 'items-center' vertically centers icon and text as in render_step 2.
💡 Add 'items-center' to flex container to vertically align children.
Why does my alert text color not change when I add text color classes?
If the text color class is overridden by more specific styles or missing from the alert container, the color won't apply. In this example, 'text-blue-800' on the alert container ensures the text inherits the blue color as in render_step 3.
💡 Apply text color classes on the container or directly on text elements.