A Andy.N Well-known member Dec 12, 2013 #1 I have a html table on XF page and I would like to make the table responsive by hiding a whole column when in responsive @maxResponsiveNarrowWidth
I have a html table on XF page and I would like to make the table responsive by hiding a whole column when in responsive @maxResponsiveNarrowWidth
Jeremy in memoriam 1991-2020 Dec 12, 2013 #2 Use @Brogan's resource on media queries. Code: table tr td:nth-child(x) { display: none } Upvote 0 Downvote
A Andy.N Well-known member Dec 12, 2013 #3 Jeremy said: Use @Brogan's resource on media queries. Code: table tr td:nth-child(x) { display: none } Click to expand... Thanks very much. Just for the record, I use this in extra.css to hide the 4th column of a table. Code: @media (max-width:@maxResponsiveNarrowWidth) { table tr td:nth-child(4) { display: none } table tr th:nth-child(4) { display: none } } Upvote 0 Downvote
Jeremy said: Use @Brogan's resource on media queries. Code: table tr td:nth-child(x) { display: none } Click to expand... Thanks very much. Just for the record, I use this in extra.css to hide the 4th column of a table. Code: @media (max-width:@maxResponsiveNarrowWidth) { table tr td:nth-child(4) { display: none } table tr th:nth-child(4) { display: none } }