body {
padding: 50px;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: "#00b7ff"
}
#content {
background-color: aquamarine;
width: 800px;
height: 300px;
margin-left: auto;
margin-right: auto;
border: 2px solid blueviolet;
}
#room {
background-color: burlywood;
margin-bottom: 1em;
}
#messages {
width: 690px;
height: 300px;
overflow: scroll;
background-color: cadetblue;
margin-bottom: 1em;
margin-right: 10px;
border: 2px solid blue;
}
<div id='content'>
<div id='room'></div>
<div id='room-list'></div>
<div id='messages'></div>
<form id='send-form'>
<input id='send-messsage' />
<input type=s ubmit id='send-button' value='Send' />
<div id='help'>
Chat commands:
<ul>
<li>Change nickname: <code>/nick [username]</code> </li>
<li>Join/create room: <code>/join [room name]</code> </li>
</ul>
</div>
</form>
</div>
Results in:
Please explain why is the inner rectangle coming out and what can be done to prevent it?