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
Sean Gange-Harris
2,123 PointsOn the video "Build the Contact Page" adding h3 or p elements causes white space at the top???
Any time I add an element into this section it adds a whitespace at the top of the contact page and ONLY for the contact page. I don't get why it's only the Contact page.
1 Answer
Jeff Lemay
14,268 PointsI don't know exactly what your code looks like but there is default margin on the top and bottom of these elements.
Try adding this to your stylesheet:
h3, p {
margin-top:0;
}
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsYou have to post the code. Please reference the Markdown Cheatsheet to see how to quote code properly.