Tablepress: Make a 'versus' Comparison Table (with sticky header!)

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 13

  • @dvlprsakib9970
    @dvlprsakib9970 3 года назад +1

    Very Help full and informative video..

  • @aidanpilet
    @aidanpilet 2 года назад

    Very helpful, thank you.

  • @weiss-shaw
    @weiss-shaw Месяц назад

    I set the parameters exactly as in the video above, but the form doesn't respond at all. I don't know what's going on.

    • @BuildThatWebsite
      @BuildThatWebsite  Месяц назад

      If the CSS is written correctly then the next step is to confirm it's actually being loaded on the page.

  • @tmondol1
    @tmondol1 Год назад

    Great video...like to ask how can I make the first column sticky?

  • @techbestreview3989
    @techbestreview3989 2 года назад

    Many thanks #love#

  • @luisbassols8900
    @luisbassols8900 2 года назад +1

    Awesome video but sticky doesn´t work for me either. It is necessary to install the Extension DataTables FixedHeader..? Thank you!

    • @BuildThatWebsite
      @BuildThatWebsite  2 года назад

      It seems like it may not work with the Datatables library active. Also, chrome and edge can't stick the thead element, you have to target the elements instead.

    • @Dispatern
      @Dispatern Год назад

      @@BuildThatWebsite Very helpful video and code! Thank you very much.
      The sticky header code works for my table press tables in the Opera browser but not in Chrome. :(

    • @BuildThatWebsite
      @BuildThatWebsite  Год назад +1

      @@Dispatern Which element did you stick with CSS? Position sticky works with TH elements but not Thead or TR elements in chrome.

    • @Dispatern
      @Dispatern Год назад

      @@BuildThatWebsite Hello! Thank you for the reply. I indeed used it on tr. In the code it's tr.row-1. In my tables the first row works as my table header but I'll try to change that now. Thank you for the tip and have a great weekend! :)

  • @Nilslab
    @Nilslab 2 года назад +1

    sticky not work, by the way the video is awesome
    .tablepress.compare tr.row-2 {
    position: sticky;
    top:0;
    box-shadow: inset 0 -1px #ddd;
    }

    • @BuildThatWebsite
      @BuildThatWebsite  2 года назад

      Hmm, I wonder if it's a browser support issue. Which browser are you using?
      One thing that can break sticky table rows is the overflow property. Trying setting the element to overflow: auto; and see if that fixes it.