The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS responsive high resolution / retina image test with css

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #45975

    Hi there,

    At first I thought about something with media queries ; using a span (or some other tag) as a replacement for the img tag. Then defining background-images using media queries to serve high res or normal image file.

    But after reading Lea Verou’s article on attr() –,
    I’m wondering if we could use the css attr() function to inject the HD image url into the background-image property ?

    test (not working) :

    Any thoughts || similar ideas someone ?


Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.