width and height generated when using svg file with the image addon - Forum | JoomShaper
Awaiting an answer SP Page Builder

width and height generated when using svg file with the image addon

Asked by Karen Dunne 1 year ago Last activity 1 year ago

3 replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us and sorry for your issue. Do you want to remove that width or what? Could you please explain it a bit more?

-Regards.

Karen Dunne Asked this

I did not want it to assign a width.

Pavel
1 year ago · edited

Hi Karen.

Width and height attributes are not CSS properties. They exist in order to prevent content jumps when loading the page while the image is not yet loaded. This does not affect the real size of the image.

Adding these attributes to the code is a positive factor for SEO. Google PageSpeed recommends to do this always. Therefore, you should not worry about it.

Read about width and height attributes https://www.w3schools.com/tags/att_img_width.asp

Log in to reply.