Content
Images
Theme
Hound
Framework
Tailwind CSS
Images
Responsive images
Display images that scale proportionally relative to browser widths.
<img src="#" class="max-w-full h-auto">
<%= image_tag "...", class: "max-w-full", alt:"..." %>
%img.max-w-full{:alt => "...", :src => "..."}
Images - Object Fit
Object Cover
Resize an element's content to cover it's container using .object-cover
Images - Object Fit
Object Contain
Resize an element’s content to stay contained within its container using .object-contain.
Images - Object Fit
Object Fill
Stretch an element's content to fit its container .object-fill.
Images - Object Fit
Object Scale Down
Display an element’s content at its original size but scale it down to fit its container if necessary using .object-scale-down.