Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @media only screen and (max-width: 1000px) {
- /* Force table to not be like tables anymore */
- #responsive-order-tables table,
- #responsive-order-tables thead,
- #responsive-order-tables tbody,
- #responsive-order-tables th,
- #responsive-order-tables td,
- #responsive-order-tables tr {
- display: block;
- }
- /* Hide table headers (but not display: none;, for accessibility) */
- #responsive-order-tables thead tr {
- position: absolute;
- top: -9999px;
- left: -9999px;
- }
- #responsive-order-tables tr { border: 1px solid #ccc; padding: 10px; }
- #responsive-order-tables td {
- /* Behave like a "row" */
- border: none;
- border-bottom: 1px solid #eee;
- position: relative;
- padding-left: 25%;
- white-space: normal;
- text-align:left;
- }
- #responsive-order-tables td:before {
- /* Now like a table header */
- position: absolute;
- /* Top/left values mimic padding */
- top: 6px;
- left: 6px;
- width: 45%;
- padding-right: 10px;
- white-space: nowrap;
- text-align:left;
- font-weight: bold;
- }
- /*
- Label the data
- */
- #responsive-order-tables td:before { content: attr(data-title); }
- }
- #responsive-order-tables{
- width: 100%;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement