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 trialVarayut Lerdkanlayanawat
Courses Plus Student 5,439 PointsWhat is an advantage of display:table?
In the video, Guil said that the table is useful when we want to align an element vertically by using vertical-align. However, vertical-align also works with inline and inline-block. So, in which case, we should use display:table?
1 Answer
Jovanny Elias
16,204 PointsYou should really only use tables to display data. Now there are other ways you can use vertical align like flex box for example. Before flex box there was not many other ways to vertically align objects. You can also use grids to display objects. Here is an article you can read to learn more about how to display objects.