How to use two-column layout with reveal.js?

后端 未结 7 1677
我寻月下人不归
我寻月下人不归 2020-12-23 15:49

I use reveal.js and write my slides in Markdown code. Now I want to display my content (text, unordered list of bullet points or even an image) in a classical two-column tex

7条回答
  •  猫巷女王i
    2020-12-23 16:44

    The CSS Grid Layout allows very flexible layouts, two-column formats and more complex layouts.

    For two columns, the following CSS snippet may be used. It defines two column templates with equal size, each 1 fraction (1fr) of the available width, and a gutter space of 10px between the columns.

    .twocolumn {
       display: grid;
       grid-template-columns: 1fr 1fr;
       grid-gap: 10px;
       text-align: left;
    }
    

    It can be used as follows

    Slide Title

    Column One
    Column Two

提交回复
热议问题