I'm facing challenges with achieving a specific layout:
https://i.sstatic.net/a5ETh.png
https://i.sstatic.net/I7fuS.png
My goal is to have the left and right elements automatically adjust their width to cover all the empty space on either side of the center element.
Here is what I've tried so far, but I'm running into issues where the center item's width is fixed at 2 units out of 12 and the left and right elements are fixed at 5 units each:
<Grid container direction='row' alignItems='center' justify='center' style={{ width: '100%', textAlign:'center' }}>
<Grid item xs='5'>
<Divider />
</Grid>
<Grid item xs='2'>
<span>or</span>
</Grid>
<Grid item xs='5'>
<Divider />
</Grid>
</Grid>
I am utilizing the material-ui reactjs library for this task. Any assistance or guidance, whether through the material ui library or CSS/JS solutions, would be greatly appreciated.