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
troy beckett
12,035 Pointscentering button..
Please take a look at my codepen below and if possible could you explain how I centre the button 'BROWSE OR CUPCAKES' when the browser hits 1024px in my media query at the bottam. I've tried doing it as if it was txt or an image but neither is working. I'm starting to see how hard this is to learn lol!!!
1 Answer
christopher smith
5,831 PointsText-align: center on the #intro ID will center your button and text to it's parent Div. That Div also has grid_9. Not sure if you want to change that to grid_12 for the full page width.
troy beckett
12,035 Pointstroy beckett
12,035 Pointsheres my code pen forgot to upload
http://codepen.io/tbeckett24/pen/FKeri