Automatic two columns with CSS or JavaScript

后端 未结 7 1057
有刺的猬
有刺的猬 2020-12-16 01:43

I\'m currently developing a website and my client wants the text of various articles to overflow into two columns. Kind of like in a newspaper? So it would look like:

<
相关标签:
7条回答
  • 2020-12-16 02:14

    This is difficult to achieve in HTML/CSS/JS for a reason (although I'm sure it's possible).

    Newspapers use multiple columns to reduce the line width make text more readable. This is fine on paper because when you finish one column you flip your eye up to the beginning of the next.

    On the web we use scrolling to allow text to continue past the bounds of the screen therefore don't need columns.

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