Div layout with 3 columns: fixed - liquid - fixed

自作多情 提交于 2019-12-12 07:55:57

问题


I'm trying to build a 3 column layout that has one fixed column on the left, a fluid column in the middle and another fixed column on the right.

Anyone seen this?

There are similar problems here, but not the solution I was looking for. CSS Layout 2-Column fixed-fluid


回答1:


http://www.dynamicdrive.com/style/layouts/category/C13/

http://www.dynamicdrive.com/style/layouts/item/css-liquid-layout-31-fixed-fluid-fixed/

Yes?




回答2:


Use fixed width and float to the appropriate side on the left and right columns. Then set the right and left margins of the fluid div to the width of the fixed divs. Fluid div should follow the fixed ones in the html.



来源:https://stackoverflow.com/questions/4796766/div-layout-with-3-columns-fixed-liquid-fixed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!