armno / blog

my hugo blog at armno.in.th
https://armno.in.th
4 stars 3 forks source link

responsive images in content pages #100

Closed armno closed 5 years ago

armno commented 5 years ago
armno commented 5 years ago

Image sizes

armno commented 5 years ago

medium-zoom supports zooming to image's full size https://github.com/francoischalifour/medium-zoom#attributes

armno commented 5 years ago

excellent tweet clarifying srcset and sizes attributes https://twitter.com/csswizardry/status/836960832789565440

armno commented 5 years ago

html 5.2 from W3C said <figcaption> must be a descendant of <figure> https://www.w3.org/TR/html52/grouping-content.html#the-figcaption-element

whereas the html standards from WHATWG states that <figcaption> must be the first or last child element of the <figure> element only https://html.spec.whatwg.org/multipage/grouping-content.html#the-figcaption-element

armno commented 5 years ago

jake's post is also gold: https://jakearchibald.com/2015/anatomy-of-responsive-images/

armno commented 5 years ago

https://armno.in.th/2019/07/25/hugo-image-resize/