# Hidden Element Dimensions?

**URL:** <https://community.weweb.io/t/hidden-element-dimensions/9037>\
**Category:** How do I?\
**Created:** [June 10, 2024, 12:57pm UTC](https://community.weweb.io/t/hidden-element-dimensions/9037 "2024-06-10T12:57:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredo22](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/fredo22/32/2283_2.png) [@fredo22](https://community.weweb.io/u/fredo22)\
**Post date:** [June 10, 2024, 12:57pm UTC](https://community.weweb.io/t/hidden-element-dimensions/9037/1 "2024-06-10T12:57:59Z")

</div>

Is there a way to force weweb to keep an elements dimensions even when the element is conditionally hidden? When I hide an element, it screws up my spacing. I seem to recall that there was a technique for this, but I can’t remember how to do it…

---

<div class="post-metadata">

**Author:** ![luka](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/luka/32/1571_2.png) [@luka](https://community.weweb.io/u/luka)\
**Post date:** [June 10, 2024, 1:23pm UTC](https://community.weweb.io/t/hidden-element-dimensions/9037/2 "2024-06-10T13:23:38Z")

</div>

Could you show a screenshot with more context?

---

<div class="post-metadata">

**Author:** ![fredo22](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/fredo22/32/2283_2.png) [@fredo22](https://community.weweb.io/u/fredo22)\
**Post date:** [June 10, 2024, 3:58pm UTC](https://community.weweb.io/t/hidden-element-dimensions/9037/3 "2024-06-10T15:58:26Z")

</div>

It’s OK, I just put the text element into a div, and specified a fixed width for the div, then hid the text element.
