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 trialJohnathan Rowley
3,842 Pointshow to set all sides to zero margin
i trying to figure this out i set the code like this
gallery li a p {
margin-left:0px; margin-right:0px padding:0%; float left }
i am just trying to figure out select the element and clear it help plese
2 Answers
Adam Moore
21,956 PointsTo clear an element, use clear: (left, right, or both)
. If there is something other than simply clearing an element that you are attempting to do, then displaying the necessary code would make it much easier to understand your question. Check the Markdown Cheatsheet below the comment textarea for the specific characters to use to add the code, if you need to.
Ojong Obasi
6,561 PointsTo set all margins to zero : margin:0; TO clear elements use : clear:both; U can always use left , right. Which ever suits u