I am attempting to position an element at the end of a Grid Item (horizontally). In order to achieve this, I am enclosing my component in the following div:
Here is the complete code snippet:
<Grid container spacing={8} alignItems={'stretch'}>
<Grid item xs={9} >
...other components
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', alignItems: 'flex-end' }}>
<p>hello world</p>
</div>
</Grid>
</Grid>
When I use the div outside the Grid, the element aligns to the right of the container, but it doesn't work when placed inside the Grid. It's worth mentioning that this Grid is imported from Material UI. Any assistance on this matter would be highly appreciated. Thank you.