I am using material-ui and react, I need to fix the top bar(not at the top of the page), which is a top bar for a Grid element(parent).
I tried to fix the topbar(child) with this:
navigation: {
position: 'fixed',
maxWidth: '47vw',
}
And the Grid(parent) is:
root: {
maxWidth: '100vw',
}
But if the width of the Grid(parent) changes, the topbar will overlap on the other Grid element which is there next to its parent. How can we fix this overlapping? Or is there any solution with the css property flex which inherits the parent's properties?