#header {
width: 100%;
height: 600px;
background: url(../img/yourpic.jpg) no-repeat fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
The goal here is a background image on a website that covers the entire browser window at all times.
From css-tricks.com
More details at https://css-tricks.com/perfect-full-page-background-image/
From css-tricks.com
More details at https://css-tricks.com/perfect-full-page-background-image/
4 Responses
(Browsersupport >IE8)
Thank you Robin for your input ;)
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.