Vertical align for whole header

Vertical align for whole header

vbulashvbulash Posts: 9Questions: 3Answers: 0

Some column headers are multi-line. Single-line column headers in such datatable are bottom aligned.
Ok, assign vertical-align: top for tr tag.
Yes, it works for column header texts.
But sort arrows in column headers remains aligned to bottom (((
How to align WHOLE column header to top?

Answers

  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin

    Can you give a link to a test case showing the issue please?

    Allan

  • vbulashvbulash Posts: 9Questions: 3Answers: 0

    https://datatablestallheader.vbulash.repl.co please.
    Please not put much attention on vertical paging indicator - this is not in my focus.
    Here really used Datatables.net bundle made by builder.
    It's include following extensions:
    - Buttons
    - JQuery
    - JSZip
    - Responsive
    - RowReorder
    - SearchBuilder
    - SearchPanes
    - Select

  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin

    Thanks for the link!

    table.dataTable > thead .sorting::before,
    table.dataTable > thead .sorting::after {
      top: 2px !important;
    }
    

    Should do it.

    Allan

Sign In or Register to comment.