What I don't understand is that it works with this code.
Code:
@media only screen and (min-width: 480px) and (max-width: 767px) {
img {
display: none;
}
header h1.logo {
width: 417px;
height: 50px;
display: block;
background-image: url(../images/sml_logo.png);
background-repeat: no-repeat;
font: 0/0 a;/*use the next 3 lines instead of text-indent: -9999px*/
text-shadow: none;
color: transparent;
background-position: 0 0;
}
body {
background: #000;
}
.photo_one {
margin-top: 7px;
display: block;
}.photo_two {
margin-top: 7px;
display: block;
}
}
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
img {
display: none;
}
header h1.logo {
width: 321px;
height: 32px;
display: block;
background-image: url(../images/sml_logo1.png);
background-repeat: no-repeat;
font: 0/0 a;/*use the next 3 lines instead of text-indent: -9999px*/
text-shadow: none;
color: transparent;
background-position: 0 0;
}
body {
background: #000;
}
.photo_one {
margin-top: 7px;
display: block;
}
.photo_two {
margin-top: 7px;
display: block;
}
}
The images stack on top of one another and look great. It is only the max-width of 767px that are messed up.
Bookmarks