Gist — how to set the height and width of an embedded Gist

后端 未结 4 839
一生所求
一生所求 2020-12-28 16:54

For purposes of embedding very long Gists from Github in a Wordpress blog, what code will permit me to set the height so that vertical scroll-bars are generated? Something

4条回答
  •  误落风尘
    2020-12-28 17:07

    None of the above answers work anymore. Here is the updated CSS that displays the gist correctly with visible scrollbars where needed.

    .gist {
       max-width:350px;
       overflow:auto;
    }
    
    .gist .blob-wrapper.data {
       max-height:200px;
       overflow:auto;
    }
    

    See this blog post for example: How to set custom height and width of embedded Github Gist.

提交回复
热议问题