0
Welcome Guest! Login
0 items Join Now

width and height image missing

    • DEEPBORD's Avatar
    • DEEPBORD
    • Jr. Rocketeer
    • Posts: 37
    • Thanks: 1

    width and height image missing

    Posted 2 years 2 months ago
    • Hello !
      I try to optimize my website based on wordpress rockettheme (clarity).
      I observed that width and height are missing. So I have an alerte with google pagespeed who tells " Image elements do not have explicit width and height " (CLS).
      This problem appears also when I try with other theme from Rockettheme ( pagespeed.web.dev/report?url=https%3A%2F...s%2Fhorizon%2F&hl=fr ).

      Could you tell me how to add specific width and height on images?

      Regards
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: width and height image missing

    Posted 2 years 2 months ago
    • If you want a responsive tempalte then you should not specify fixed width and height dimensions on an IMG tag. So, ignore that warning.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.052 seconds