Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Update:</strong> I just realized that you're not looking for how to specify how many columns to display, but you're looking for tips on how to have your long content overflow into multiple columns. Sorry about the misunderstanding. My original answer below still addresses the issue of specifying how many columns are used in case that is needed.</p> <p>There are some CSS rules for specifying columns (width, number of columns, gutter, etc.). Used with a <code>height</code> rule, you can probably achieve what you're looking for. Try something like this:</p> <pre><code>#main { column-count: auto; column-width: 200px; height: 360px; overflow: auto; } </code></pre> <p>The MSDN article linked below discusses all of these options, but the IE "hands on" site will let you play around in real-time.</p> <p>References: </p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/ie/hh673534%28v=vs.85%29.aspx" rel="nofollow">MSDN article: Multi-column layout</a></li> <li><a href="http://ie.microsoft.com/testdrive/Graphics/hands-on-css3/hands-on_multi-column.htm" rel="nofollow">IE "hands-on" site</a></li> </ul> <hr> <p><strong>Original answer:</strong> </p> <p>You could have different CSS based on width. Example:</p> <pre><code>@media screen and (max-width:800px) { #main { /* overrides for width less than 800 */ } } @media screen and (min-width:800px) and (max-width:1200px) { #main { /* overrides for width between 800 and 1200 */ } } </code></pre> <p>References: </p> <ul> <li><a href="http://stephenwalther.com/archive/2012/02/29/metro-understanding-css-media-queries.aspx" rel="nofollow">Metro: Understanding CSS Media Queries</a></li> <li><a href="http://www.w3.org/TR/css3-mediaqueries/" rel="nofollow">W3C: Media Queries</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload