I am currently developing a blogging platform with special features other than the usual ones. But I run into a problem when I try to set the image size.
I have a file with the following css:
.blogBody img { display: block; margin-left: auto; margin-right: auto; width:80%; height:auto; }
This works as if users were adding their images to the page.
BUT! some images are smaller and do not look beautiful when they are stretched to 80% of the page width.
So, I give them for each image they add, indicate, if they want, the HTML code for each image (automatically made using tinymce)
So. When they add an image, html looks like this:
<img src="....." />
But when they want to set the size manually, the img tag will become (tinymce):
<img src="......" width="..." height="...." />
But. Image is still 80% of the page width! Is it possible to allow img width to css image width?
Thanks for your time, Matthias.
source share