Moonsoft Software Solutions

Stylesheet question

Started 16 Nov 2024 · 2 replies

  1. Porter
    If I want/need to highlight what column is sorted e.g., with a bold font or a background color, how is this done? Don't really get it.
  2. Moonsoft support
    Hi,
    the current ordered column doesn't contain any specific style, the way to check the ordering is to see the arrows next to the header title (with the up/down sign) change from the 'order' icon to the 'up' or 'down' icon. However you could add some css to attach more specific styles to this header based on the arrow that is active, for ex, to style the header ordered descending (arrow down), you can use the new 'has' selector, to style 'the header that contains' a down arrow:

    th:has(> span.fa-caret-down) {
    color: #d90f0f;
    background-color: #eeeeee !important;
    }


    It should work on modern browsers, but we share a page with full info in case you want to check compatibility:


    https://developer.mozilla.org/es/docs/Web/CSS/:has#browser_compatibility

    Hope this helps, regards

    Silvia Martín
    Moonsoft Team
  3. Porter
    Thank you, that helps somewhat.

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket