我是第一年的网页设计师,我目前正在从事一项需要并排浮动两个内容的任务。每次我将正确的内容浮动到右侧时,我:1)丢失我的整个包装器 2)内容不会浮动在左侧内容旁边
你们知道我做错了什么吗?
这是我的html代码:
<div id="wrapper">
<header></header>
<nav>
</nav>
<div id="content">
<div id="left">
<img src="Images/headerOne.png" width="356" height="46" alt="Top Quality Lumber" title="Top Quality Lumber">
<p>Misty Mountain Wood Products is located just east of Edson in beautiful Yellowhead County, Alberta. We offer a complete service from cutting the tree to the finished product. Our mill produces top quality Canadian timber and lumber.</p>
<img src="Images/headerTwo.png" width="356" height="46" alt="Board and Batten siding" title="Board and Batten">
<p>Use our unedged boards (2nd-cut slabs) to create rustic Board-on-Board siding on pole or frame buildings. Great for animal shelters, machine sheds, hay sheds, garden shed, playhouse, barns, wind fencing etc...</p>
<img src="Images/headerThree.png" width="356" height="46" alt="Deal Direct with the Mill" title="Deal Direct">
<p>this is where you write whatever</p>
</div><!--this is the end of the left div-->
</div> <!--this is the end of the content-->
<div id="column">
<img src="Images/shed01.jpg" alt="shed" title="shed">
<img src="Images/batten01.jpg" alt="batten" title="batten">
<img src="Images/shed02.jpg" alt="shed2" title="shed2">
</div><!--this is the end of the column-->
</div><!--this is the end of the wrapper-->
和我的 CSS
#wrapper{width: 960px;
margin: 0 auto;
background-color: #4c5834;}
#content{padding-bottom: 10px;
padding-left: 20px;
width: 940px;
float: left;
color: #ffffff;}
#left{width: 600px;
padding-top: 20px;
padding-right: 15px;
padding-left: 15px;
float: left;
background-color: #838b73;}
#column{width: 220px;
background-color: #838b73;
padding-top: 25px;
padding-left: 15px;
padding-right: 15px;
float: right;
margin: 0 auto;}
目前这让我非常沮丧,我不知道该怎么做