css - How to link an image in markdown and also resize the image? -


i've been trying link image github's project readme, , used syntax link image:

[![alt text](https://link-to-my-pic.png)](https://www.youtube.com/youtube-id)

and works. but, want resize image. somehow, can't manage resize , still make linkable- can please help?

thanks!

markdown not allow defining width on image. , markdown formatting syntax not processed within block-level html tags.

so, you'll need use regular <a> tag <img> tag, width attribute.

<a href="https://www.youtube.com/youtube-id">   <img src="https://placehold.it/350x350" width="200" /> </a> 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -