Reputation: 31
This is how I tried it to work:
avatarHolder: {
boxShadow: theme.shadows[10],
transform: 'translateY(-50%)',
borderRadius: "50%",
border: '1',
},
large: {
width: theme.spacing(25),
height: theme.spacing(25),
},
}));
<Grid item xs={4} align="center">
<Box border={4} className={classes.avatarHolder}>
<Avatar alt="avatar" src={DefaultAvatar} className={classes.large} />
</Box>
</Grid>
But it doesn't work: Also when I resize the page, the border is changing this is what happened
I'm trying making it look like avatars on facebook This is what I want to achieve
I'm new in react developement, thanks in advance!
Upvotes: 3
Views: 6420