Gatsby: [gatsby-remark-images] Disable image height stretching

Created on 10 Dec 2017  ·  1Comment  ·  Source: gatsbyjs/gatsby

Each time i use an image in my .md files, they are stretched in height. I tried to override the img height in my css to height: auto;, in that case, i get blur underneath the image. How can i remove image height stretching? That is only 100% width and auto or no height?

Thanks.

Most helpful comment

Problem was caused by white-space: pre-line; in my CSS.

>All comments

Problem was caused by white-space: pre-line; in my CSS.

Was this page helpful?
0 / 5 - 0 ratings