"Full screen background cover page."
Bootstrap 3.2.0 Snippet by mrmccormack

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<div class="masthead clearfix">
<div class="inner">
<h3 class="masthead-brand">Cover</h3>
<ul class="nav masthead-nav">
<li class="active">
<a href="http://bootsnipp.com/iframe/g6GWQ" target=
"_blank">View full screen</a>
</li>
<li>
<a href="#">Features</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
</div>
</div>
<div class="inner cover">
<h1 class="cover-heading">Full screen background cover page.</h1>
<p class="lead">Cover is a one-page template for building simple and
beautiful home pages. Download, edit the text, and add your own
fullscreen background color and photo to make it your own.
<small> <br> <a href="http://bootsnipp.com/iframe/g6GWQ" target=
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Based on Cover by https://twitter.com/mdo" @mdo
* added cover image and background color to match (green)
*
* Globals
*/
/* Links */
a,
a:focus,
a:hover {
color: #fff;
}
/* Custom default button */
.btn-default,
.btn-default:hover,
.btn-default:focus {
color: #333;
text-shadow: none; /* Prevent inheritence from `body` */
background-color: #fff;
border: 1px solid #fff;
}
/*
* Base structure
*/
html,
body {
/*css for full size background image*/
background: url(http://p1.pichost.me/i/66/1910819.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Thanks for the great snippet!

When there is too much text on the page which needs scrolling it leads to the following bugs:

- on Android cellphone we are getting paralleling effect of background image
- on iOS devices (iPad, iPhone) background image gets enormously stretched
- on regular displays it looks fine - background image stays fixed and text just scrolling trough it

I've tested with this particular snippet by multiplying <body> content </body> few times
http://s12.postimg.org/c907...

How can I avoid that bug?

Thanks!

Systems Rebooter () - 9 years ago - Reply 1


svg background image doesn't scale well with this technique.. Especially for mobile devices. Can you advice what parameters needs to be tweaked? Thank!

Systems Rebooter () - 9 years ago - Reply 0


nice!

[CorVayne] #TeamExitoso () - 9 years ago - Reply 0


and Photo source is used? I want to change it !

isan () - 10 years ago - Reply 0


go to the css and change source in the line

background: url(http://p1.pichost.me/i/66/1... no-repeat center center fixed;

and enjoy...good luck

saiju () - 9 years ago - Reply 0


hi,I used this code,But I do not run like you!!!,Execution time Section <h1>Full screen...</h1>Attached to Section <h3>cover</h3> and ul ! Can you help me fix it?

isan () - 10 years ago - Reply 0


i want to use my web site(http://www.gezginnerede.com)

Halil Åžahin () - 10 years ago - Reply 0


Go ahead and use it!

maxsurguy () - 10 years ago - Reply 0


Superb man. I liked the wallpaper and menu . Can i use it with Container?

Tom () - 10 years ago - Reply 0


Why create custom classes? Why not use jumbotron outside of container to achive the same thing?

Bo Lora () - 10 years ago - Reply 0


Mirchu () - 10 years ago - Reply 0