Making Jekyll img's wider than the text?

后端 未结 3 885
别跟我提以往
别跟我提以往 2021-01-24 00:30

For my Jekyll blog, I want the images to span the whole width of the column, while having padding on either side of the text, like this: http://www.webdesignerdepot.com/2015/05/

3条回答
  •  没有蜡笔的小新
    2021-01-24 00:50

    I think Davids answer is really good. However, if you have no problem solving this with jQuery, you can do this:

    $('.content > p > img').parent().css('padding','0');
    

    That way your markdown will stay clean.

提交回复
热议问题