Below codes shows “right” in new line ,but if we remove width for right,the right text comes in same line with left.Why it is working in a such way?
* { margin:0; padding: 0; }
#left {background-color: green; float: left; width: 200px; }
#right {background-color: blue; width: 200px; }
<div id="menu">
<div id="left">Left</div>
<div id="right">Right</div>
</div>