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
Jacob Miranda
19,392 PointsDisplay Table
Just ran into this neat little strip of code when trying to figure out how to center my unordered list, I have never seen/heard of it (well til today, thanks CSS-Tricks), can anyone explain it because I understand what the other values for display do, but am new to the value "table".
Thanks in advance
3 Answers
Adam Moore
15,825 PointsLink? Code?
Jacob Miranda
19,392 Pointsthe code is just a line of css,
display: table;
i found out about it at http://css-tricks.com/centering-list-items-horizontally-slightly-trickier-than-you-might-think/, when trying to center a list on a website I'm currently working on.
Jacob Miranda
19,392 Pointsthe code is just a line of css,
display: table;
i found out about it at http://css-tricks.com/centering-list-items-horizontally-slightly-trickier-than-you-might-think/, when trying to center a list on a website I'm currently working on.