Delay in css formatting kicking in
-
On loading a large table in a page, there is a slight delay before my custom css takes effect (reducing font size, changing header colour, etc.).
I’ve tried adding the css to both the custom css option in the plugin, and also in my theme, with the same thing happening.
This means that if I use an a name tag in a row to try and link straight to it, after the font resizes the link is ‘looking’ at the wrong part of the page in some browsers such as Chrome.
For example:
https://johnd121.sg-host.com/complete-scores/#RM075I tried to update the css of the plugin directly, but it didn’t seem to work. For example, adding
.dataTables_scroll {
font-size: 13px;
}to the plugin’s css section shrinks the font, but there appears to be no matching css line in the plugin itself.
Basically, I think I need the plugin’s custom css to load instead of, rather than after, the original css.
Can you assist? (Full custom css I’m applying below.)
Thanks,
John
(Great plugin by the way!)/*tablepress */ .tablepress-id-1 thead { white-space: nowrap; } .dataTables_scroll { font-size: smaller; } .tablepress .sorting:after { display: none; } .dataTables_filter { padding-right: 20px; padding-bottom: 20px; } th.column-1.sorting, th.column-2.sorting, th.column-3.sorting, th.column-4.sorting, th.column-5.sorting, th.column-6.sorting, th.column-7.sorting, th.column-8.sorting, th.column-9.sorting, th.column-10.sorting, th.column-11.sorting, th.column-12.sorting, th.column-13.sorting, th.column-14.sorting, th.column-15.sorting { vertical-align: top; background: #79602A; color: white; font-size: smaller; } th.column-1.sorting:hover, th.column-2.sorting:hover, th.column-3.sorting:hover, th.column-4.sorting:hover, th.column-5.sorting:hover, th.column-6.sorting:hover, th.column-7.sorting:hover, th.column-8.sorting:hover, th.column-9.sorting:hover, th.column-10.sorting:hover, th.column-11.sorting:hover, th.column-12.sorting:hover, th.column-13.sorting:hover { background: #ba6300; }
The page I need help with: [log in to see the link]
- The topic ‘Delay in css formatting kicking in’ is closed to new replies.