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
erdragerdragsson
Courses Plus Student 5,887 PointsWrapper wierd centering problem!
Hello, my list images wont center in the wrapper div, its more space on the left side than on the right side. here a picture of it
heres my css code for my wrapper and my list items
.main-wrapper {
text-align: center;
width: 1460px;
min-height: 100%;
margin: 0 auto;
padding-left: 75px;
padding-right: 75px;
}
.list-items {
text-align: center;
margin: 0;
padding: 0;
list-style: none;
}
.list-items li {
float: left;
width: 400px;
margin: 25px;
margin-bottom: 10%;
list-style:none;
}
1 Answer
shezazr
8,275 Pointsnot sure.. could it be the width on the main wrapper that is too big?
erdragerdragsson
Courses Plus Student 5,887 Pointserdragerdragsson
Courses Plus Student 5,887 PointsI had the same problem on my home page before, and i posted a forum thread about it and fixed it, but i cant remember how to do it, and the width of the main wrapper was not a problem on my home page, one thing i forgot to say was, that my site is fixed.