What is best CSS Code to use to make PowerCMS' Tables responsive??
Since PowerCMS has the insert table functionality, I have a lot of clients who use that to try and create their content placement - despite my objections and suggestions to it.
One main issue, is that it throws off the responsiveness of the site.
I am wondering what might be the best CSS code to use to allow the tables inserted via PowerCMS to be responsive? I have tried a couple things. Latest being:
@media screen and (max-width: 600px) {
table {
border: 0;
}
table thead {
display: none;
}
table tr {
margin-bottom: 10px;
display: block;
border-bottom: 2px solid #ddd;
}
table td {
display: block;
text-align: right;
font-size: 13px;
border-bottom: 1px dotted #ccc;
}
table td:last-child {
border-bottom: 0;
}
table td:before {
content: attr(data-label);
float: left;
text-transform: uppercase;
font-weight: bold;
}
}
But nothing seems to do the trick...any suggestions??