image aspect ratio not scaled correctly in container

[ad_1]

I think the problem arises from the fact that the editor with which you maintain the content stores the wrong dimensions as styling on each image. There is apparently always

height: 730px;width: 1095px;

.. wherever that comes from. Therefore, the theme does not matter at the point, since that is stored directly on the image as inlinestyle.

A solution could be to overwrite the inlinestyle for the height:

html :where(img[class*="wp-image-"]) {
  height: auto !important;
}

threadi

not sure i understand, i do not now much html
where would i enter this and is it reversabile?

thanks

This is not HTML but CSS. You can insert the code under Appeareance > Customizer > Additional CSS.

yes got that and it seems to have worked! cant thank you enough

Glad if I could help. You are welcome to set the topic to solved.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer