Slidify: Alignment of Codes

前端 未结 1 727
慢半拍i
慢半拍i 2021-01-05 09:15

I have problem with the alignment of the codes in two column slide.

\"enter

H

相关标签:
1条回答
  • 2021-01-05 09:36

    The trouble is because the default two column layout in Slidify center aligns the left column (I will fix it in the next version). This is the two column template used.

    ---
    layout: slide
    ---
    {{{ slide.content }}}
    <div style='float:left;width:48%;' class='centered'>
      {{{ slide.left.html }}}
    </div>
    <div style='float:right;width:48%;'>
      {{{ slide.right.html }}}
    </div>
    

    Easiest fix would be to save the above layout as twocol.html in the directory assets/layouts and then remove class = "centered". Custom layouts automatically override system layouts. Just make sure that you drop the file in assets/layouts since that is the location where Slidify will look for custom layouts.

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