我试图让这些DIV从左到右“流动”两组,然后对于每一个奇数,在我的客户端的Joomla站点中创建一个新行(看到这里http://centralcat.socialhippo.com/services/available-for-adoption.html 我'我得到了前两个工作,但是当第三个被渲染时,它向右移动,而不是漂浮在左边。 我没有和CSS结婚,所以如果有更好的方法(列表等),我Flow div into rows
0
A
回答
2
只需将高度加到#cat2adopt
即可快速修复此问题,只要确保高度足以容纳内容即可。当您将高度不一的浮动div发生时,会出现此“问题”。
你也应该在这里使用类,因为ID必须是唯一的。
如:
.cat2adopt { /* class="cat2adopt" */
clear: right; /* don't really need this I don't think */
float: left;
height: 300px; /* added this */
margin-bottom: 20px;
margin-right: 20px;
position: relative;
text-align: center;
width: 400px;
}
+0
非常感谢,我甚至没有注意到它是一个ID,我也会改变它(没有睡眠和编码太多)。 – stephmoreland 2011-01-24 16:38:46
相关问题
- 1. SQL concat rows table2 into column table1
- 2. javascript array into div
- 3. jQuery .load PHP into Div -not working-
- 4. HandsOnTable Dropdown with rows of rows
- 5. angularjs ng-table/ng-rows rows not loading
- 6. data_changed with deleted rows - ABAP
- 7. Thymeleaf Table rows rows issue(1 Order,N Articles)
- 8. Bash rows to column
- 9. PHP count some rows
- 10. c#Randomize DataTable rows
- 11. Teradata ROWS UNBOUNDED PRECEDING
- 12. Codeigniter count rows
- 13. Wpf Datagrid Max Rows
- 14. SELECT TOP 10 rows
- 15. mysql count multiple rows
- 16. PHP PDO - Num Rows
- 17. MYSQL num rows error
- 18. Flow Type:HOC with cloneElement
- 19. Bootstrap 4 navbar with 2 rows
- 20. SELECT INTO with LIMIT
- 21. ul li rows but ordered
- 22. INT ** VS INT [ROWS] [COLS]
- 23. DataTables rows()。data()not working
- 24. Python Pandas Dataframe Append Rows
- 25. DataTables selected rows data-attribute
- 26. mysqli count rows错误
- 27. PL/pgSQL Array of Rows
- 28. Num rows returns wrong number
- 29. Zoomoo into Zoomooz
- 30. [0,rows]和[1,rows]是什么意思?更具体地[和]
正如随机不谈,在菜单中,当您单击“关于我们”或“猫生”,这或许应该把你的地方(同一个地方作为第一个链接下拉式)而不是无所事事。 – thirtydot 2011-01-24 16:42:08