Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the table header #6123

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
14 changes: 13 additions & 1 deletion src/sections/Pricing/comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ h2, h5{
margin: 2rem auto;
display: block;
overflow-x: scroll;
overflow-y:hidden;
overflow-y:auto;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
position: relative;
height: 700px;
}
.price-table {
width: 100%;
Expand Down Expand Up @@ -88,6 +90,16 @@ h2, h5{
background-color:${props => props.theme.secondaryColor};
color: #FFFFFF;
}
.price-table-head {
position: sticky;
top: 0;
z-index: 1;
}
.price-table-head td {
border: none;
margin: 0;
padding: 0;
}
.price-table td.price {
padding: 16px 24px;
font-size: 20px;
Expand Down
Loading