- This topic is empty.
-
AuthorPosts
-
February 3, 2015 at 12:37 am #194946
cyberjo50
ParticipantIM trying to make the bbottom content show up just about after the top div ends. Anyone can figure out how to do it?
Here is what i got so far.
http://jsfiddle.net/cyberjo50/4g660jgz/Thank you in advance!
February 3, 2015 at 1:44 am #194948Shikkediel
ParticipantThat is in fact already the case but I reckon it’s not as intended. Could you explain how the layout should be looking exactly – is there the need to add a black background frame around the video?
http://jsfiddle.net/4g660jgz/3/
But from your previous topic I conclude the video needs to always be fullscreen? Then I’m sure sure where the next div should otherwise be.
February 3, 2015 at 12:49 pm #195018Beverleyh
ParticipantGoing back to your original post here: https://css-tricks.com/forums/topic/anyone-know-any-tutorial-how-to-do-this-website/#post-194655
where you aim to achieve this: http://awesomescreenshot.com/0fa4atfpecYou seem to have strayed somewhat from the examples that I already linked to.
From what I can see (and correct me if I’m interpreting it wrongly), if you take the source from here: http://fofwebdesign.co.uk/template/_testing/fullscreen-video/ but change “vid-wrap” from position:fixed; to position:absolute,
And then add the markup+CSS for “content-underneath” from here: http://fofwebdesign.co.uk/template/_testing/fullscreen-img-content-below.htm, you have pretty much exactly what you need.February 5, 2015 at 11:23 pm #195201cyberjo50
ParticipantIs this good?:
<!doctype html>
<html>
<head>
<meta charset=”utf-8″>
<title>Untitled Document</title>
<style>
body, html {
margin: 0;
padding: 0;
height:100%;
}
#videoContainer {
height: 100%;
width: 100%;
min-height: 100%;
max-height: 100%;
overflow: hidden;
}
#myVideoBg {
bottom: 0%;
min-width: 100%;
min-height: 100%;
width: 100%;
height: 100%;
z-index: -1000;
overflow: hidden;
object-fit: cover;
position:relative;
}
#firstContent {
width:100%;
height: 100%;
width: 100%;
min-height: 100%;
max-height: 100%;
position:absolute;
top:0px;
}
#secondContent {
background:#007F79;width:100%;height:100%;
height: 100%;
width: 100%;
min-height: 100%;
max-height: 100%;
}</style>
</head><body>
<video id=”myVideoBg” src=”http://bfc6069c43f7ffbc5dba-0502af2ee568fe969e1c3ea7c42e34f6.r90.cf1.rackcdn.com/images/timesquare.mp4″ loop autoplay muted > </video>First Contentxdfxdfgsdfgdfgdf
sdf
gsd
fg
sdfg
sd
fgFirst Contentxdfxdfgsdfgdfgdf
sdf
gsd
fg
sdfg
sd
fg</body>
</html>February 5, 2015 at 11:24 pm #195202cyberjo50
Participanti used the object-fit for the video to be resposive on any browser size.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.