I have three divisions in a document that are giving me trouble...
and in the document they appear as...
The intention was to have the content in the con division appear at 600px width, and beneath that the contents of tos div on the left and ups div on the right, all within the 600px width of the con div. What I have instead is that the content of the con div and tos div appear as planned, but the ups div, rather than rendering to the right of the con div, renders below it. I tried aligning the left margin of the ups div to 301px, and that makes it render correctly horizontally, but it is still below the tos div. What am I missing?
Code:
#con {margin-top: 120px;
width: 600px;
float: left;}
#tos {margin-top: 20px;
width: 300px;
height: 250px;
padding: 10px;
float: left;
overflow: auto;
text-align: left;
scrollbar-base-color: #786440;}
#ups {position: relative;
margin-top: 20px;
width: 299px;
height: 250px;
padding: 10px;
float: left;
overflow: auto;
text-align: left;
scrollbar-base-color: #786440;}
and in the document they appear as...
Code:
<div id="con">content
<div id="tos">content</div>
<div id="ups">content</div></div>
The intention was to have the content in the con division appear at 600px width, and beneath that the contents of tos div on the left and ups div on the right, all within the 600px width of the con div. What I have instead is that the content of the con div and tos div appear as planned, but the ups div, rather than rendering to the right of the con div, renders below it. I tried aligning the left margin of the ups div to 301px, and that makes it render correctly horizontally, but it is still below the tos div. What am I missing?