csspoo

Search

Tags

  • Animation 1
  • Hover 2

Feed

RSS2.0
  • 2020-01-01

    Style markdown images

    Author

    Jens Törnell

    Comments

    Start a discussion

    When using markdown, you may need to style specific images.

    Here is a solution that makes it possible without HTML clutter.

    Markdown

    ![Image](image.jpg#small)

    CSS

    img[src*="#small"] {
       width:150px;
       height:100px;
    }

    Sources

    • https://www.xaprb.com/blog/how-to-style-images-with-markdown/

    If you like this post, please share it! Tweet this!

  • Write for us
  • Contact us
  • About
  • License
Copyright © 2019

This page uses cookies for Google Analytics.