# Alignment of SVG - svg-ui

**URL:** <https://discourse.nodered.org/t/alignment-of-svg-svg-ui/79121>\
**Category:** Dashboard\
**Created:** [11 June 2023 19:42 UTC](https://discourse.nodered.org/t/alignment-of-svg-svg-ui/79121 "2023-06-11T19:42:56Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [21 June 2023 11:35 UTC](https://discourse.nodered.org/t/alignment-of-svg-svg-ui/79121/21 "2023-06-21T11:35:13Z")

</div>

SVG inside SVG. Both have viewbox which then both do it's thing. For user the inner one is something to maybe care about but still, both do affect. This is not something that human brain can figure out. That's why my highly simplified solution for centering that simple emoji works. By removing most of adjustments, all do fall back to defaults. But what if something needs adjustments?

I have anything bad to say about the node. Probably it is most powerful of ui widgets overall. But for sure it takes to have at least basic knowledge about SVG to use it properly or at least to being able to understand the source of misbehaviors. Layouting is trickiest part of the SVG and is full of non expected happenings.

I'm really sorry. Didn't want to hurt your feelings anyhow.

---

<div class="post-metadata">

**Author:** ![thalesmaoa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thalesmaoa/32/17067_2.png) [@thalesmaoa](https://discourse.nodered.org/u/thalesmaoa)\
**Post date:** [21 June 2023 11:47 UTC](https://discourse.nodered.org/t/alignment-of-svg-svg-ui/79121/22 "2023-06-21T11:47:10Z")

</div>

> [@hotNipi](#):
>
> Probably it is most powerful of ui widgets overall.

I completely agree! You've done an excellent work @BartButenaers .

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [21 June 2023 15:56 UTC](https://discourse.nodered.org/t/alignment-of-svg-svg-ui/79121/23 "2023-06-21T15:56:00Z")

</div>

> [@thalesmaoa](#):
>
> I completely agree! You've done an excellent work @BartButenaers

Ditto 🤩

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 July 2023 15:56 UTC](https://discourse.nodered.org/t/alignment-of-svg-svg-ui/79121/24 "2023-07-21T15:56:56Z")

</div>

Closed on 21 July 2023 15:56 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/alignment-of-svg-svg-ui/79121.md?page=1)
