Forums

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

Home Forums JavaScript Selectively Serving Images Using HTML5 “data-” attribute & Match Media for Responsive Site Re: Selectively Serving Images Using HTML5 “data-” attribute & Match Media for Responsive Site

#116691
robhawk
Member

I’ve just found and tried this and it adds the height “auto” as an inline style which overrides the hard set height parameter.

I think the removal of the height and width would be cleaner although this does work. What do you think?

$(‘.support img’).css({
height: ‘auto’
});