Slidify: Alignment of Codes

放肆的年华 提交于 2019-11-30 20:23:39

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!