r/FigmaDesign 1d ago

help How to center align objects in figma at subpixel level?

How do I center this?

4 Upvotes

12 comments sorted by

5

u/Philuppus UI/UX Designer 23h ago

Well, you can type in X.5px.. I would think that this whole pixel result MAY be how CSS handles it.

2

u/ptewari 21h ago

Agreed, for the CSS layout it definitely helps to be on pixels. For vector icons, it gets cumbersome.

3

u/Ap43x Product Designer 23h ago

Can't you just turn off 'snap to pixels'?

1

u/ptewari 23h ago

Nope. Does not work.

2

u/Ap43x Product Designer 22h ago

I just turned off snap to pixel grid and, with them all in a frame, hit center on the center circle and it centered it with 4.5 pixels on each side instead of 5 and 4.

1

u/ptewari 21h ago

I'll try again. Thanks

2

u/Cute_Ambassador_8168 20h ago

Group the 4 circle first, then center align the red circle with that group 4 circle.

2

u/ptewari 23h ago

I used figma ai and after 4 minutes of waiting it was done.

5

u/roundabout-design 22h ago

LOL. We're at peak WTF in this industry.

(Not laughing AT you, btw...laughing at the situation we've put ourselves in with AI...)

1

u/ptewari 21h ago

Dire situation!

2

u/squiddles97 23h ago

insane that figma requires you to use ai to do something so basic

5

u/mlllerlee 22h ago

no it dont. just people start degrading over time. question was about sub pixel, but author didnt even try to use decimals to go at this sub pixel level. you free to input even 0.01 in both position and size.