Responsive Tables, The Smart Way

HTML css table responsive with different rows

Did you try to make a media query or no? I am just going to give you a hint how to do it:

HERE for displaying/aligning the div

HERE for media query

Try to play with the display attribute in the CSS of the div tag.

PS

Do not forget to do the change in the media query otherwise it will change it all.

Good luck :)

Can you line-break a table using CSS by width or number of columns?

Having done more research, I can see there's no 'proper' way to do what I wanted to do. In my case, the simplest way to achieve the desired result visually was to make each column/column pair its own table, and then make those tables display as blocks and float to the left. This isn't great semantically (a new table for every major data point), but it's for an internal tool to be used by a small team, so I'm not spending more time on this.

What would be the best way to make responsive layout with wide width table using bootstrap?

you need to give it a min-width. This happens all the time. If you look in your browser and make it smaller you can see the same problem when you scroll to the right. The background does not the scrollarea unless it has a width.



Related Topics



Leave a reply



Submit