# Responsive images

**URL:** <https://discourse.gohugo.io/t/responsive-images/11108>\
**Category:** Uncategorized\
**Created:** [March 19, 2018, 11:32pm UTC](https://discourse.gohugo.io/t/responsive-images/11108 "2018-03-19T23:32:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![damien](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@damien](https://discourse.gohugo.io/u/damien)\
**Post date:** [March 19, 2018, 11:32pm UTC](https://discourse.gohugo.io/t/responsive-images/11108/1 "2018-03-19T23:32:56Z")

</div>

Hello,

I am new to Hugo and using the strata theme [https://themes.gohugo.io/theme/strata](https://themes.gohugo.io/theme/strata) .

When writing a new post and inserting an image in it, it seems that there is no responsivness for this image (the image doesn’t resize when viewed on a mobile phone)…or am I missing something ?

Thank you,

---

<div class="post-metadata">

**Author:** ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Post date:** [March 20, 2018, 12:43am UTC](https://discourse.gohugo.io/t/responsive-images/11108/2 "2018-03-20T00:43:08Z")

</div>

If a theme doesn’t do what you need, you can talk to the author of the theme to request it (or make a PR), or, you can override the theme templates to add it yourself. Have you examined the theme’s template or shortcode files to see how it works and why it’s not responsive?

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [March 20, 2018, 12:31pm UTC](https://discourse.gohugo.io/t/responsive-images/11108/3 "2018-03-20T12:31:07Z")

</div>

It appears that in this specific theme you have to add the classes `image` and `fit` to the image for responsivity.

> <https://github.com/digitalcraftsman/hugo-strata-theme/blob/master/static/css/main.css#L2069>

---

<div class="post-metadata">

**Author:** ![damien](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@damien](https://discourse.gohugo.io/u/damien)\
**Post date:** [March 21, 2018, 4:51pm UTC](https://discourse.gohugo.io/t/responsive-images/11108/4 "2018-03-21T16:51:58Z")

</div>

Ok, thank you @RickCogley & @davidsneighbour.
