Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*thread 27783263 - custom table*/
- /* Base styling */
- #cid_217 .form-matrix-table td {
- position: relative;
- border-top: 0.5px solid grey !important;
- }
- #cid_217 > table {
- margin-top: -110px;
- }
- #cid_217 > table > tbody > tr.form-matrix-tr.form-matrix-header-tr > th.form-matrix-headers.form-matrix-column-headers {
- visibility: hidden;
- }
- #cid_217 .form-matrix-table td label::before {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- font-size: 10px;
- display: inline-block;
- white-space: normal;
- width: 50px;
- }
- /* Set width of inner cells (columns 3 to 10) */
- #cid_217 .form-matrix-table tr td:nth-child(n+3):nth-child(-n+10) label::before {
- width: 30px;
- }
- /* Remove borders from radio buttons */
- #cid_217 .form-matrix-table tr td label::before {
- border: none;
- box-shadow: none;
- }
- /* First column – custom text */
- #cid_217 .form-matrix-table tr:nth-child(2) td:nth-child(2) label::before { content: "Had none"; }
- #cid_217 .form-matrix-table tr:nth-child(3) td:nth-child(2) label::before { content: "Not at all"; }
- #cid_217 .form-matrix-table tr:nth-child(4) td:nth-child(2) label::before { content: "Not at all"; }
- #cid_217 .form-matrix-table tr:nth-child(5) td:nth-child(2) label::before { content: "Fleetingly"; }
- #cid_217 .form-matrix-table tr:nth-child(6) td:nth-child(2) label::before { content: "Not at all"; }
- #cid_217 .form-matrix-table tr:nth-child(7) td:nth-child(2) label::before { content: "Not at all"; }
- #cid_217 .form-matrix-table tr:nth-child(8) td:nth-child(2) label::before { content: "Not at all easy"; }
- /* Last column – custom text */
- #cid_217 .form-matrix-table tr:nth-child(2) td:nth-child(11) label::before { content: "A lot of the time"; }
- #cid_217 .form-matrix-table tr:nth-child(3) td:nth-child(11) label::before { content: "Very powerful"; }
- #cid_217 .form-matrix-table tr:nth-child(4) td:nth-child(11) label::before { content: "Very intrusive"; }
- #cid_217 .form-matrix-table tr:nth-child(5) td:nth-child(11) label::before { content: "Most of the day"; }
- #cid_217 .form-matrix-table tr:nth-child(6) td:nth-child(11) label::before { content: "Very distressed"; }
- #cid_217 .form-matrix-table tr:nth-child(7) td:nth-child(11) label::before { content: "Very harassing"; }
- #cid_217 .form-matrix-table tr:nth-child(8) td:nth-child(11) label::before { content: "Very easy"; }
- /* Middle columns – numbers 2 to 9 */
- #cid_217 .form-matrix-table tr td:nth-child(3) label::before { content: "2"; }
- #cid_217 .form-matrix-table tr td:nth-child(4) label::before { content: "3"; }
- #cid_217 .form-matrix-table tr td:nth-child(5) label::before { content: "4"; }
- #cid_217 .form-matrix-table tr td:nth-child(6) label::before { content: "5"; }
- #cid_217 .form-matrix-table tr td:nth-child(7) label::before { content: "6"; }
- #cid_217 .form-matrix-table tr td:nth-child(8) label::before { content: "7"; }
- #cid_217 .form-matrix-table tr td:nth-child(9) label::before { content: "8"; }
- #cid_217 .form-matrix-table tr td:nth-child(10) label::before { content: "9"; }
- /*ends here*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement