Width And Height Generated When Using Svg File With The Image Addon - Question | JoomShaper

Width And Height Generated When Using Svg File With The Image Addon

Karen Dunne

Karen Dunne

SP Page Builder 9 months ago

Hello,

I'm using an svg with an image addon but it's adding a width and height that is not intended. Please see screenshot: https://monosnap.com/file/SklOnBcatJ2Gm8DcbfQarpG7ZbzKE5

Please advise.

0
3 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 9 months ago #180332

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.

0
Karen Dunne
Karen Dunne
Accepted Answer
9 months ago #180333

I did not want it to assign a width.

0
Pavel
Pavel
Accepted Answer
9 months ago #180336

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

0