Fitness of the images to the content width
-
Hello,
I’m using this code to fit the uploaded images to the content width in my theme.
.single img { max-width: 100%; width: auto; height: auto; }
It makes all the images to original size and if it gets more than content width, it gets fitted.
But I have some images that are resized in WordPress text editor and I want them to be shown as their resized size and not at full size.
How can I solve this problem?
- The topic ‘Fitness of the images to the content width’ is closed to new replies.