score:1
try adding width: 100%;
to
.blackbackground {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-color: #121212;
width: 100%
}
after your question edit:
your container is wrapping the black background. you can try container-fluid
or rework your code like this:
<navbar page={2}/>
<div classname="blackbg">
<div classname="container">
...
this way the black background is not being constrained by the width of the container
.
score:1
i would say the div containing the background image is the issue here. make sure that the div expands the full width and height so then the background image will follow.
Source: stackoverflow.com
Related Query
- Background image refusing to cover full page
- How can I apply page specific Full screen background image using React?
- Should I place a full page background image in a react component?
- How to add full page background image in NextJS
- Set background image to full screen in Reactjs
- Background image in react-admin Login page
- How to display an image in full screen background using reactJS and css?
- How to set a full background image in CSS using reactjs style?
- React.js background full image is not working
- CSS and Bootstrap - full page image not working
- Url Loader, loading my background image once then after refreshing the page it fails to appear
- Set image as full background in React.js
- page background color or image is positioning under header
- How to create a full background image
- cant get background image on full screen size in reactjs
- Setting background image to full screen React
- how i can change background color of full page using onclick event in reactjs?
- Trying to render a full page video background in Next.js but getting blank page
- CSS: Background image larger than entire page
- React full page image that disappears on scroll down, doesnt come back when you scroll up
- How to make background image height change depending on page content
- reactjs background image not coming on full screen
- How to set a background image in reactjs?
- React path to public folder in css background image
- Embedding full react application into an existing web page
- How can I repeat a pattern image to create a background in React Native?
- ReactJS change background image dynamically?
- Gatsby: Set background image with CSS
- How to Lazy load the background image inside the inline style property (React)?
- How to use svg image as background image in react-native?
More Query from same tag
- Reactour - how to disable next step until correct user action?
- How to add CSS server side render for React Next app with Material-ui
- React - ES6 - Unexpected token
- Using an ES6 React Lib I've created with Babel and Rollup on Gatsby site
- Error integrating firebase into react app
- React cannot handle counter properly
- How to keep MetaMask connection to the UI persistent with Web3-react?
- MaterialUI Radio buttons with Formik - value not set onSubmit
- React Material-UI with Router
- How to avoid duplicates using material-ui autocomplete?
- Cannot change the background colour of <SideNav>
- Conditional routing based on boolean variable
- Adding react components to header based on the page
- How can I add 'System Language' as a language option in the settings of an Electron app?
- Use string as JS file that declares a react component
- React jest enzyme function called test
- cant update quantity of a product in a shopping cart using react-redux
- How to move navbar to right and apply background color?
- Create React App + Express.js + Passport.js Login Issue
- onclick function breaks instead of switching in new css class
- ReactJS: How to inject component and pass variable in extended component instead using function
- Redux isn't mapping state to props in a way I can use the object
- React.js - child component props undefined
- d3 zoom and slider issue working together
- Unable to map Firebase db items
- Styling a separate functional component with Styled Components
- Invalid prop `center` supplied to `GoogleMap`. React.js
- React TSX - Use Lambda expression in React element prop
- How can I combine my constants components with the API request?
- Adding a key and value to the data before submit in a React JS Form