Looking to create a div element that only expands from the left side as content is added?
<div
id="sent_message"
style='background-color: #2b89cc; color: white; font-family: Arial,Helvetica, sans-serif; margin-top: 10px; display: inline-block; max-width: 50%; min-width: 20%; font-size: 25px; border-radius: 5px; word-wrap: break-word; position: relative; right: -1360;'>
<p>Hello</p>
</div>
Prefer not to use position:absolute
? Is there a way to prevent the expansion of the div from the right side? Your help would be greatly appreciated.