سؤال

I'm hoping to build a two column layout that will be utilized by a WYSIWYG editor. Example: http://taurean.io/labs/clearcut-theme/essay.html

هل كانت مفيدة؟

المحلول

You can use CSS3 column-count property for this. Write like this below:

div{
    -moz-column-count: 2;
    -moz-column-gap: 10px;
    -webkit-column-count: 2;
    -webkit-column-gap: 10px;
    column-count: 2;
    column-gap: 10px;
}

Read this for more http://www.quirksmode.org/css/multicolumn.html

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top