I have created a flexbox based table, which is stripped to the basics the example below.
<!-- display: flex;flex-flow: column nowrap; flex:1 1 auto; -->
<div class="ovdTable">
<!-- display: flex; flex-flow: row nowrap; flex: 1 1 auto; -->
<div class="ovdTable__table">
<!-- flex:1 1 auto; -->
<div class="ovdTable__column">
<!-- display:flex; flex:none; -->
<div class="ovdTable__cell ovdTable__cell--header">
<!-- 1-n -->
<div class="ovdTable__cell">
</div>
</div>
</div>
CSS class ovt_Table__cell--header adds the following style properties to the first cell in a column.
position: sticky;
position: -webkit-sticky;
top:0;
As expected i have search for similar stackoverflow articles and tried the solutions found there.
- My position: sticky element isn't sticky when using flexbox
- Checked for parent element with
overflow-x: hidden;
- Added
align-self: flex-start
to the sticky element.
- Checked for parent element with
- Fixed element inside flexbox item
- Was not able to find any useful information here.
I have a CodePen example here.
Maybe I am totally wrong, but could i have made an error in the overflow settings?