-
1. Re: Vertically aligning to the middle of an element
Chris Bank - ReflowDev Oct 15, 2013 2:40 PM (in response to therealrgbk)There is a popover panel with the alignment options in to, along with distributing sizes and spacing. It's on the bottom right of the status bar next to the zoom control. You can allign things to the middle, but we don't currently use CSS that will keep in there if you are using height:auto boxes. It's just viusally aligned using margin-top at that particle viewport size.
Hope that helps and thanks for using Reflow.
-
2. Re: Vertically aligning to the middle of an element
therealrgbk Oct 15, 2013 3:25 PM (in response to Chris Bank - ReflowDev)Thanks for the reply. From what I can tell trying this, it doesn't work with children and parents? The parent is relative and the child as well.
-
3. Re: Vertically aligning to the middle of an element
Chris Bank - ReflowDev Oct 15, 2013 3:41 PM (in response to therealrgbk)That's correct, you can't align children to it's parent. If your parent is not height:auto you can visually align boxes in the center by putting one child box at the top of the parent and one child box at the bottom, and then allign them and they will meet in the middle.
-
4. Re: Vertically aligning to the middle of an element
therealrgbk Oct 15, 2013 4:08 PM (in response to Chris Bank - ReflowDev)Hi Chris, I'm confused about this answer. The situation I'm looking at is a single object within a parent onject, which is vertically and horizontally centred in the middle. If there are two objects in the parent, it's not the same thing surely? let me know if I'm missing soemthing though as i'd love ot have an easier way to do this.
In general though, can't you for now just vertically centre children in parents 'as a favour' to the user, even if it's just doing a simple calcualation: margin-top = (parentHeight - childHeight) /2?!
Thanks,
Marc
-
5. Re: Vertically aligning to the middle of an element
Chris Bank - ReflowDev Oct 15, 2013 5:50 PM (in response to therealrgbk)Ah, I thought you had two children in the parent so you could move one up and one down. For just the single child we didn't implement that yet. It might get added for alignment later but more likely we're thinking about smart guides and then you'd get the single case when one items middle would snap to it's parents middle. Thanks for the use case!
-
6. Re: Vertically aligning to the middle of an element
YuuJin Jan 3, 2014 3:24 PM (in response to Chris Bank - ReflowDev)I'd also like to center things vertically in a div



