I'm currently working on creating a hero banner using the material-ui framework and I've encountered an issue.
Here's what I have so far:
https://i.stack.imgur.com/UXTDY.png
However, I'm facing an irritating problem with left and right padding that I can't seem to eliminate.
This is how my Hero component is structured:
import React from 'react'
import Container from '@material-ui/core/Container'
import { makeStyles } from '@material-ui/core'
const useStyles = makeStyles((theme) => ({
heroContent: {
backgroundColor: theme.palette.background.paper,
padding: theme.spacing(8, 0, 6),
},
heroButtons: {
marginTop: theme.spacing(4),
},
}))
const Hero = () => {
const classes = useStyles()
return <Container className={classes.heroContent}></Container>
}
export default Hero
If anyone could provide guidance on how to remove the left and right padding and achieve full width, I would greatly appreciate it. I've tried adjusting the paddings in my styles without success. Thank you for any help!