Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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.