3 columns layout via DIVs (middle-flexible, all flexible height, STRICT mode)

后端 未结 3 1740
借酒劲吻你
借酒劲吻你 2021-01-24 06:35

Hey guys, I\'ve struggled with this for a bit and don\'t seem to find a solution. Need an advise or the simple statement saying this is impossible (so far I think it is - imposs

相关标签:
3条回答
  • 2021-01-24 07:21

    YUI Grid CSS is proabably what you want. I am not familiar with the CSS magic involved, but it supports multiple different layouts. It doesn't seem to support fixed left and right columns.

    0 讨论(0)
  • 2021-01-24 07:36

    This is what you're looking for I think:

    http://matthewjamestaylor.com/blog/perfect-3-column.htm or with pixel widths: http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-pixels.htm

    It's XHTML strict, and supports all current browsers.

    0 讨论(0)
  • 2021-01-24 07:39

    No tables challenges are a bit like waving a red flag to a bull for me:

    http://edeverett.co.uk/experiments/noTables2.html

    Tested in IE7, FF3, Chrome 2.

    This should get you most of the way there, the main idea is to use negative margins on the two side columns with the main column set to 100% width. It would benefit from having a lower limit on the page width.

    (I've edited the example html to show how to include content in the centre section)

    0 讨论(0)
提交回复
热议问题