News for hackers. Stuff that matters.
Re:The Clown Car Technique for Responsive Images by sbouafif on Monday April 22, 2013 @01:32AM (#5587941)
I like the idea of separating the content from the presentation and the behaviour. But I'd really like to automate this.

Is there a way in SVG to concatenate strings? (I never really used SVG and can't find something on this in Google) .

Using JS I generally use the data attribute in html to set the image name and add _small, _big, _huge depending on the window size. The JS script will automatically set the right image. It's great but doen't work if there's no JS support.

There are no comments on this comment yet.