5450 Posts in 1672 Topics by 1197 members
|Go to End|
25 October 2013 at 11:45pm
Currently, when I add image through the TinyMCE image insert function it adds a height and width attribute to the <img> tag. I want to stop that, as it a responsive site and so need the image to be flexible.
Is this possible? Has anyone done it before or know how?
Thanks in advance,
26 October 2013 at 12:31am
I've not found any way of preventing that, but I've overcome it before using CSS. Usually, giving img a max-width: 100%; and height: auto; will solve it - browsers seem to ignore the width/height attributes when 'height: auto' is applied.
Hope this helps,
|Go to Top|