# Dynamic image image centered when rescaled

**URL:** <https://forum.bubble.io/t/dynamic-image-image-centered-when-rescaled/15645>\
**Category:** Need help\
**Created:** [July 16, 2017, 8:50pm UTC](https://forum.bubble.io/t/dynamic-image-image-centered-when-rescaled/15645 "2017-07-16T20:50:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@felipe](https://forum.bubble.io/u/felipe)\
**Post date:** [July 16, 2017, 8:50pm UTC](https://forum.bubble.io/t/dynamic-image-image-centered-when-rescaled/15645/1 "2017-07-16T20:50:00Z")

</div>

Hello guys, I’m trying to make a page where the users can upload his logo ob the upper left corner. As you can imagine, the users will have very differerent image sizes, from squared version to rectangular ones. So, what I am trying to do is keep always the image image height and adjust the width so that proportions will remain intact. It works fine, however the image is being centered, as you can see below.

when I set up like this:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/9/96652649661c1f3d48549abecccf5de666a397d9.png)

it goes like this:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/e/ebd08e33926772a275c352518c41d6dc3c51afce.png)

see that when I stretch the width…

 ![](https://us1.discourse-cdn.com/bubble/original/2X/a/af3ac8b2b40cad5a39a45ee547abedd46865a5a7.png)

… element keeps its height, adjust the width, but is centered… I just it to be left justified!

 ![](https://us1.discourse-cdn.com/bubble/original/2X/7/79c02f50efa9b106d105c93b7e78d6a3cc080b4a.png)

Is that a bug? Is that an improvement needed? Am I doing something wrong?

Tks!!

---

<div class="post-metadata">

**Author:** ![muradamod](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/muradamod/32/2407_2.png) [@muradamod](https://forum.bubble.io/u/muradamod)\
**Post date:** [July 16, 2017, 9:29pm UTC](https://forum.bubble.io/t/dynamic-image-image-centered-when-rescaled/15645/2 "2017-07-16T21:29:21Z")

</div>

Try the other run-mode rendering options and see how they effect the width size.

---

<div class="post-metadata">

**Author:** ![felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@felipe](https://forum.bubble.io/u/felipe)\
**Post date:** [July 18, 2017, 5:01pm UTC](https://forum.bubble.io/t/dynamic-image-image-centered-when-rescaled/15645/4 "2017-07-18T17:01:52Z")

</div>

@emmanuel any thoughts on that? Am I doing something wrong? Should it be a feature?

---

<div class="post-metadata">

**Author:** ![felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@felipe](https://forum.bubble.io/u/felipe)\
**Post date:** [July 19, 2017, 1:43am UTC](https://forum.bubble.io/t/dynamic-image-image-centered-when-rescaled/15645/5 "2017-07-19T01:43:31Z")

</div>

tried them all, but neither worked (streched nor adjusting element height)… the 1st one keeps the height but streched the width, the 2nd keeps the width and adjust the height. Rescaling works fine, but it centers the image when the width is smaller

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [September 24, 2017, 8:50pm UTC](https://forum.bubble.io/t/dynamic-image-image-centered-when-rescaled/15645/6 "2017-09-24T20:50:10Z")

</div>

Closed on September 24, 2017, 8:50pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
