Stackover flow cross post: http://stackoverflow.com/questions/31272000/polymer-1-0-layout-issues-background-image-center-play-button-and-document-flI am new to the Polymer layout scheme and having issues along with a few questions.Here is the jsbin: http://jsbin.com/takoxe/edit?html,css,output1) For the picture of king david, I am trying to display it full width and height and have it responsive. I should be able to do this with just `fullbleed fit`, but instead I have to use `top: 50px; z-index: -1`. I am sure I am doing this wrong and if someone could show me the correct way, please.
2) I can not get the `play-button-contain` and `play-button-video` to center in the middle vertically and it doesn't stay in the middle responsive when I move it. I was hoping `class="layout vertical"` would be the answer but it's not.3) I later on, as I add the page, I will add a section/polymer element underneath the King David picture. So, as a filler I used `<h5>A new section that should be on the bottom, not top</h5>` but instead it shows on top of the King David picture. This is really confusing since it's not following the document flow.
I am using the https://events.google.com/io2015/ site as a model, which I like alot. This is why I am using `background-image`, etc for this set up and not some other way.
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/9224a9d5-761a-411c-8be0-2d1d3d97b603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<div class="layout vertical center-justified">
<div id="video-photo-container" class="fullbleed fit">
<div class="horizontal layout center" style="height: 100%">
<div class="layout vertical center" style="width: 100%">
<div id="play-button-container" class="horizontal center-center layout wrap">
<div id="play-button-png"></div>
<h5>See and hear the story</h5>
</div>
</div>
</div>
</div>
</div>
html,body {
margin: 0;
background-color: #E5E5E5;
font-family: 'RobotoDraft', sans-serif;
}
.video-dialog {
max-height: 100%;
max-width: 100%;
}
#video-photo-container {
min-height: 100px;
background-image: url("../img/pastor_mulinde3.jpg");
position: aboslute;
background-size: cover;
top: 50px;
z-index: -1;
max-height: 500px;
}
#play-button-png {
background: url("../img/play-video-button.png") no-repeat 50% 0;
background-size: 40px;
height: 60px;
width: 50px;
}
#play-button-container {
width: 150px;
height: 150px;
}
div#video-photo-container h5 {
color: white;
font-family: 'Roboto', sans-serif;
font-size: 14px;
font-weight: 500;
line-height: 24px;
}