2013-03-18 58 views
0

我试图让这个学生工作人员的博客帖子从左到右并自动换行到下一行。问题是,div块只会留在左侧。有什么我在CSS中失踪?试图从左到右得到div块,但他们卡在左侧

.page_container { 
    float: left; 
    font-family: Arial,Helvetica,sans-serif; 
    font-size: 16px; 
    font-weight: normal; 
    line-height: 20px; 
    margin-top: 30px; 
    min-height: 250px; 
    padding: 0 15px; 
    position: relative; 
    width: 700px; 
} 

.staff_container { 
    float: left; 
    font-family: Arial,Helvetica,sans-serif; 
    font-size: 16px; 
    font-weight: normal; 
    line-height: 20px; 
    margin-top: 30px; 
    padding: 0; 
    position: relative; 
    width: 300px; 
} 

Weber State PRSSA Staff Page here

回答

1

你的意思是这样的吗?

enter image description here

我添加了这些样式:

.post { 
    float: left; 
    width: 300px; 
} 

.staff_container { 
    width: 100%; 
} 
+0

感谢您测试了这一点。它非常完美! – dgPehrson 2013-03-18 04:12:49