(thebackgroundofthesectionisfixed,butthevideoisnot)
Couldanyonehelpmetoleavethefixedvideoequaltosectionbg?
code:
@import url('https://fonts.googleapis.com/css?family=Paytone+One');
*{
margin: 0;
padding: 0;
font-family: helvetica;
}
header{
z-index: 5;
position: fixed;
width: 100%;
height: 70px;
background-color: #fff;
-webkit-transition: background-color .5s;
}
nav{
display: table;
margin: auto;
margin-top: 15px;
height: 40px;
-webkit-transition: margin-left .5s;
}
ul{
margin-right: 850px;
display: block;
float: right;
list-style: none;
}
ul li{
float: left;
margin: 10px;
}
ul a{
color: #000;
text-decoration: none;
-webkit-transition: color .1s;
}
body{
margin: 0;
padding: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 300;
background-color: #3F51B5;
color: #fff;
}
.center{
text-align: center;
}
.parallax-target{
min-height: 650px;
background: transparent center fixed;
}
.parallax-targett{
min-height: 600px;
background: transparent;
}
.parallax-targettt{
min-height: 600px;
}
.middle{
min-height: 400px;
}
.slide{
background-image: url(../img/2853636-firewatch-wallpapers.png);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
width: 100%;
height: 700px;
}
.content{
}
<section class="slide">
<div class="content">
<p style="text-align: center;"> <iframe src="http://www.youtube.com/embed/QN_FdiMItvA?autoplay=1&modestbranding=1&nologo=1&rel=0&showinfo=0&theme=light&wmode=opaque&controls=0"width="690" height="400" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
</div>
</section>