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

后端 未结 7 1690
我寻月下人不归
我寻月下人不归 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条回答
  •  长情又很酷
    2020-12-23 16:40

    I created two ID's in an external css file, custom.css, which I attached to my reveal.js file with the field css: custom.css in the YAML header.

    #left {
      left:-8.33%;
      text-align: left;
      float: left;
      width:50%;
      z-index:-10;
    }
    
    #right {
      left:31.25%;
      top: 75px;
      float: right;
      text-align: right;
      z-index:-10;
      width:50%;
    }
    

    I placed div elements with the right and left ID's in my markdown document to produce a two column layout.

    
    

提交回复
热议问题