I am having trouble getting them to render correctly when I integrate them into my demo page
Looking at your CSS, you have the following rules defined, which you later need to nullify in your 899px media query;
Code:
.banner { height:192px; margin-left:17%; width: 66%; ...
So, you'd auto the width and height and zero the margin-left (returning them to their default values), and also add the :after pseudo element CSS;
Code:
@media screen and (max-width: 899px) {
.banner {
width: auto;
height: auto;
margin-left: 0;
}
.banner:after {
content: " ";
display: block;
width: 100%;
padding-top: 33.333%; /* 3:1 final ratio */
}
...
}
This part can be deleted;
Code:
.banner {content:" "; display:block; width:100%; padding-top:0;width:100px;/* 3:1 ratio */
margin-left:0%;
}
That's a mish-mash of stuff from .banner and the .banner:after pseudo element
Bookmarks