Has css issues
-
I have noticed one problem.
lets say, you add any small image, like this:into post editor (i use gutenberg, default),
and resize it to any size.
WP setswidth
andheight
parameters in img tag, like this:
<img .... width=94 height=77 >
and on frontend output is good.
but after activating the imagify, i get:<picture ..width="94" height="77"> <source type="image/webp" srcset="..."> <img src="..." > </picture>
and thus, the parameters are trimmed from
img
tag and set topicture
element, which is not enough and messes the design.i think you should fix that just simply by using “display” parameter, and also, converting the
<picture width="27"
to
<picture style="width:27px; display:inline-block;" ..
here also visible:
https://stackoverflow.com/questions/57387816/how-to-force-img-tag-to-respect-parent-picture-parameters
- The topic ‘Has css issues’ is closed to new replies.