Markdown and image alignment

前端 未结 14 2293
予麋鹿
予麋鹿 2020-12-02 04:06

I am making a site that publishes articles in issues each month. It is straightforward, and I think using a Markdown editor (like the WMD one here in Stack Overflow) wo

相关标签:
14条回答
  • 2020-12-02 05:07

    Embedding CSS is bad:

    ![Flowers](/flowers.jpeg)
    

    CSS in another file:

    img[alt=Flowers] { float: right; }
    
    0 讨论(0)
  • 2020-12-02 05:08

    Simplest is to wrap the image in a center tag, like so ...

    <center>![Alt test](http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png)</center>
    

    Anything to do with Markdown can be tested here - http://daringfireball.net/projects/markdown/dingus

    Sure, <center> may be deprecated, but it's simple and it works!

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