Fix error styling for inline elements