Currently, I am working on organizing HTML elements to create a user-friendly interface. Utilizing MVC and ASP.NET for this chat client, I have encountered an issue with correctly arranging the items. The default MVC project in Visual Studio provides a strip of items at the top of the webpage that extends horizontally across the whole page. My goal is to position the textarea in the top left corner below the default strip, followed by the message-dialog div underneath the textarea with the same width as the textarea.
Below is my current HTML setup:
<div class="container" id="message-dialog">
<input type="text" id="message" />
<input type="button" id="sendmessage" value="Send" />
<input type="hidden" id="displayname" />
</div>
<div class="container" id="discussion-dialog">
<textarea rows="20" cols="50" id="discussion"></textarea>
</div>
I did manage to set it up one time, but when I resized the page, all the divs started overlapping and creating a chaotic mess.