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

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 13

  • @tmondol1
    @tmondol1 ปีที่แล้ว

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

  • @dvlprsakib9970
    @dvlprsakib9970 3 ปีที่แล้ว +1

    Very Help full and informative video..

  • @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 2 ปีที่แล้ว

      @@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  2 ปีที่แล้ว +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 2 ปีที่แล้ว

      @@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! :)

  • @aidanpilet
    @aidanpilet 2 ปีที่แล้ว

    Very helpful, thank you.

  • @weiss-shaw
    @weiss-shaw 3 หลายเดือนก่อน

    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  3 หลายเดือนก่อน

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

  • @techbestreview3989
    @techbestreview3989 2 ปีที่แล้ว

    Many thanks #love#

  • @Nilslab
    @Nilslab 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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.