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
Kevin Goudswaard
11,061 PointsI have a div with a nested <UL> whose border is spilling out on the right. whats goin on??
2 Answers
Shawn Ramsey
27,237 PointsThe margin for that div is set to - margin: 0 10px 30px;. Try removing the margin for that div or setting it to 0. The preceding div has its margin set to 0.
That works in Chrome inspector.
Shawn Ramsey
27,237 PointsIf you want to add a little space to the sides of the helpful div, try reducing the width to 90% or so and centering it with margin: 0 auto;. Maybe something like this:
.helpful {
width: 90%;
margin: 0 auto;
padding: 25px 0;
font-size: 1.2em;
text-align: center;
border: 2px solid black;
}
Kevin Goudswaard
11,061 PointsLooks great! :) thanks again shawn
Kevin Goudswaard
11,061 PointsKevin Goudswaard
11,061 Pointsthanks Shawn. I am trying to get a little space from the sides of the browser and the ".helpful" class element. Ill keep playing with it.