Skip to content

Instantly share code, notes, and snippets.

@yang-wei
yang-wei / fullscreen.css
Last active February 6, 2023 23:50
Full size background image using CSS cover in mobile devices
View fullscreen.css
html {
background: url(image url) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
overflow: hidden;
}