WPDIR
Everything and everyone WordPress

Setting image width and height is important again (Smashing Mag)

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #538 Reply
    Nathan
    Guest

    Fantastic read on responsive web design and why image dimensions are once again becoming important

    https://www.smashingmagazine.com/2020/03/setting-height-width-images-important-again/

    Thanks to some recent changes in browsers, it’s now well worth setting width and height attributes on your images to prevent layout shifts and improve the experience of your site visitors.

    #612 Reply
    Isabella
    Guest

    I’ve actually started using “normal” images again in some of my WordPress themes code, because using them as div backgrounds via CSS has top many unpredictable behavior…

    #613 Reply
    Richard
    Guest

    it would be nice if CSS could auto detect the natural width or height of an image to maintain ratio

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Setting image width and height is important again (Smashing Mag)