I've been trying to position my Grid
component from Material-UI
, but so far, I haven't had any luck. What could be the issue here?
class Scene extends React.Component {
render() {
const mystyle = {
backgroundColor: "DodgerBlue",
position: "absolute",
top: "125px",
left: "125px",
width: "100px",
height: "100px"
};
return (
<div className={mystyle}>
<Grid container>
<Grid item xs="2">
<Board init={1} end={2}/>
</Grid>
</Grid>
</div>
);
}
}
export default Scene;