Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The roughest way is to add "display:block; overflow-x:scroll" to the table or an element containing the table. "display:block" wouldn't be needed for a block element like div of course.

For ideal presentation you can very quickly end up in a situation where you need to use media queries and set particular styles for particular situations.

In this case I would also remove the border from the table element (the cells have a border).



Thanks. Fixed table scrolling.

(not sure which border from the table element. will try to figue out later)

Update: also fixed. Thanks again :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: