Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
in Q2A Core by
I am using Markdown Editor for my Q&A site. When a user add a large image, it overflows. Is there any way to auto fix/resize the images.

Thank you.

2 Answers

+2 votes
edited by

add a css rule:

.entry-content img {

    max-width: 500px;

   width: expression(this.width > 500 ? 500: true);


I don't know about the width: expression part, just got it from the net; seems IE6 doesn't understand max-width.

0 votes

I had that same problem and for some reason noahs solution did not work for me.

But what did work was:

.entry-content img[style] {max-width:90% !important;height:auto !important;}

read here


and here


(making the window larger and smaller)