You can use background-size
property. The first value sets the width and the second value sets the height.
If you want it to be full-screen you can use it like this:
background-size: 100vw 100vh;
More Related Contents:
- How can I make a div not larger than its contents?
- Why does this inline-block element have content that is not vertically aligned
- How to line-break from css, without using ?
- How can I scale the content of an iframe?
- How to create uneven rounded sides on a div?
- CSS Cut out circle from a rectangular shape
- Problems with CSS sticky footer
- What is quirks mode?
- CSS background-size: cover replacement for Mobile Safari
- How can I make a CSS glass/blur effect work for an overlay?
- Calculator keypad layout with flexbox
- How to exclude particular class name in CSS selector?
- How to make div element auto-resize maintaining aspect ratio?
- floating elements behavior
- How do I prevent the padding property from changing width or height in CSS?
- Div width 100% minus fixed amount of pixels
- overflow:scroll; in
- How do I style the HTML form validation error messages with CSS?
- How can I target a specific column or row in a CSS grid layout?
- How to create a triangle in CSS3 using border-radius
- Adding style to file upload button in css
- What are the default values for justify-content & align content?
- word-wrap break-word does not work in this example
- centering a div between one that’s floated right and one that’s floated left
- How to select classes with spaces
- How to place Text and an Image next to each other in HTML?
- How to change style of radio and checkbox input [duplicate]
- How to make input autofocus in internet explorer?
- How to always show the vertical scrollbar in a browser?
- Image center align vertically and horizontally [duplicate]