CSS: Vertical column layout without
后端 未结 3 490
终归单人心
终归单人心 2021-01-13 15:36

Ok, I leaned html & css back in 2001. I was used to do something like this (To create a website with a \"vertical-column\" layout):




        
3条回答
  •  [愿得一人]
    2021-01-13 16:16

    CSS3 has some neat column layout options, but they're not very good compatability-wise, and a fair number of the options aren't supported by a large number of browsers.

    If you're seeking to make columns of variable/fixed width, then this is probably the article you're looking for:

    http://www.alistapart.com/articles/holygrail

    Using this method, you can set one or more divs to a fixed width, while having another resize appropriately to fill the page.

    If you just want all your columns to resize, then just make them all float: left, and width: {percentage of page}%

提交回复
热议问题