Displayed here is a snapshot of content included in form validation for a website project that's currently in development:
The content is currently situated within a div element with its width set to 20%. Initially, without this rule, the div spanned across the entire width of the screen which seemed excessive for the brief messages inside. Is there a method to have the div (or another suitable container) automatically adjust its width to only accommodate the content it holds?