Welcome to the Treehouse Community
Looking to learn something new?
Apologies for one more question: is there a way to vertically center some text within the confines of a shape?
The smart guides only allow me to align the top of the text area to the center of the shape below it, or the bottom of the text area to the center of the shape below it, but I would like to center the vertical center of the text area to the center of the shape below it. I can't find any custom guides to do this manually, nor do measurements relative to the entire artboard help me. Any thoughts? Would be grateful.
Ricky Catron13,023 Points
I am unsure if you mean centering it in sketch or in a real webpage.
In Sketch: I have no idea I am terrible at design.
In CSS: Welcome to one of the most annoying problems ever, vertically centering text... , there may be an official or better way of doing this that I do not know about as I mainly focus on the backend but whenever I do I I end up relying on the css calc function to get the most accurate high for the top margin.