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

CSS

Flex Layout

Hi, Can we use flex properties for only tables and not for divs.

I have an emailer to make in which I have to use only tables and not divs.

So is it possible??

2 Answers

yes you can use FLEX on any TAG in HTML :) fell free to experiment :)

if tablets only you also will need MEDIA QUERIES

exmple :

@media screen only and (min-width: 759px)  and (max-width: 1249px){
table {
displey : flex:
}
tbody {
displey flex;
}
}

Hi,

Check out this post https://hashnode.com/post/really-responsive-tables-using-css3-flexbox-cijzbxd8n00pwvm53sl4l42cx

There is a bit of back and forth on the comment section that might be useful to you.