Reputation:
https://codesandbox.io/s/jp82jl853v
sportsEditTabContentFooter: {
position: "fixed",
left: 0,
bottom: 0,
width: "100 %",
backgroundColor: "red",
color: "white",
textAlign: "center"
},
<div className={classes.sportsEditTabContentFooter}>
<div>sports Status</div>
<div>
<Button variant="outlined" className={classes.button}>
Cancel
</Button>
<Button
variant="outlined"
onClick={this.savesports}
className={classes.button}
>
Save sports test
</Button>
</div>
</div>
Upvotes: 0
Views: 187
Reputation: 222
After looking at your code it looks like you have not applied the position:sticky to the div. If you add that you should notice it sticks where you have positioned it.
.RecipeReviewCard-sportsEditTabContentFooter-649 {
left: 0;
width: 100%;
color: white;
bottom: 0;
text-align: center;
background-color: red;
position: sticky;
}
Upvotes: 1