CSS3 Responsive Poster
A responsive content poster that displays different videos & text.
Details: http://enrappture.com/responsive-text
A responsive content poster that displays different videos & text.
Details: http://enrappture.com/responsive-text
<div id="calm-poster">
<div id="calm-poster">
<img src="http://i.imgur.com/woR4D.png" alt="" title="Calm Crown" class="calm-poster-l-img" />
<div id="calm-poster-l-media"><iframe width="560" height="315" src="http://www.youtube.com/embed/bRdo7WXTVoM" frameborder="0" allowfullscreen></iframe></div>
<div id="calm-poster-m-media"><iframe width="420" height="315" src="http://www.youtube.com/embed/lZSbkYjQer8" frameborder="0" allowfullscreen></iframe></div>
<div id="calm-poster-s-media"><iframe width="250" height="188" src="http://www.youtube.com/embed/Z3ZAGBL6UBA" frameborder="0" allowfullscreen></iframe></div>
<div id="calm-poster-l">Keep calm <div id="calm-poster-and">and</div> be <span>responsive</span></div>
<div id="calm-poster-m">Touch me, touch me. I wanna feel your body</div>
<div id="calm-poster-s">The best things come in small packages</div>
</div>
/* Keep calm and be responsive */
/* Keep calm and be responsive */
body {
background:#eee;
font-family:sans-serif;
text-align:center;
}
#calm-poster {
background:#d00;
width: 590px;
height:1400px;
margin-left:auto;
margin-right:auto;
margin-bottom:20px;
text-align:center;
font-family:Arial Black, sans-serif;
color:#fff;
font-size:5em;
padding:150px 125px 50px 125px;
line-height:1.3em;
text-transform:uppercase;
}
#calm-poster-l {
width:500px;
margin-left:auto;
margin-right:auto;
}
#calm-poster-l span {
clear:both;
font-size:.8em;
}
#calm-poster-and {
font-size:.4em;
}
#calm-poster-m, #calm-poster-s {
display:none;
}
#calm-poster-m-media, #calm-poster-s-media {
display:none;
}
#calm-poster-l-media iframe {
border:5px solid #fff;
}
#calm-poster-m-media iframe {
border:4px solid #999;
}
#calm-poster-s-media iframe {
border:3px solid #333;
}
@media only screen and (max-width: 959px) {
#calm-poster {
background:#000;
font-size:2em;
line-height:1.5em;
padding-left:70px;
padding-right:70px;
height:600px;
width:440px;
}
img.calm-poster-l-img {
display:none;
}
#calm-poster-l-media, #calm-poster-s-media {
display:none;
}
#calm-poster-m-media {
display:block;
}
#calm-poster-l-media iframe {
border:5px solid #fff;
}
#calm-poster-l {
display:none;
}
#calm-poster-m {
display:block;
}
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
#calm-poster-l-media, #calm-poster-m-media {
display:none;
}
#calm-poster-s-media {
display:block;
}
#calm-poster {
background:#1DA237;
height:450px;
width:320px;
font-size:1.2em;
line-height:3em;
font-family:georgia, serif;
padding-left:10px;
padding-right:10px;
padding-top:60px;
padding-bottom:20px;
}
#calm-poster-l {
display:none;
}
#calm-poster-m {
display:none;
}
#calm-poster-s {
display:block;
}
}
@media only screen and (max-width: 479px) {
#calm-poster-l-media, #calm-poster-m-media {
display:none;
}
#calm-poster-s-media {
display:block;
}
#calm-poster {
background:#1DA237;
height:320px;
width:260px;
font-size:1em;
line-height:2.5em;
font-family:georgia, serif;
padding-left:2px;
padding-right:2px;
padding-top:30px;
}
#calm-poster-l {
display:none;
}
#calm-poster-m {
display:none;
}
#calm-poster-s {
display:block;
}