---
title: The css_image_sizes
helper
blurb: Use the css_image_sizes
helper to specify maximum sizes
for all of your project’s images without using unsemantic width and
height attributes in your HTML code.
layout: template-logo-medium
---
<%= md_links %>
<% content_for :seeAlso do %>
<% end %>
# <%= current_page.data.title %>
<%= current_page.data.blurb %>
It works by specifying a `max-width` and `max-height` for each image used in
your Middleman project (except for SVG files, which don’t have dimensions).
## Example
When called like this:
~~~ erb
<%%= css_image_sizes %>
~~~
…the result is this:
~~~ scss
<%= css_image_sizes %>
~~~
## Use
You could use this in an HTML `