Skip to content

Instantly share code, notes, and snippets.

@drmmr763
Created June 13, 2014 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drmmr763/12c782221728770a7d9d to your computer and use it in GitHub Desktop.
Save drmmr763/12c782221728770a7d9d to your computer and use it in GitHub Desktop.
Strangeness
<header>
<!-- the dimensions of this div will be 220 x 77px -->
<div class="logo-normal">
<a href="#">
<img src="logo.png" />
</a>
</div>
<!-- the dimensions of this div will be 220 x 82px -->
<div class="logo-werid">
<a href="#">
<img src="logo.png" />
</a>
</div>
</header>
.logo-normal {
width: 220px;
margin-left: 20px;
display: block;
float: left;
.img {
max-width: 100%;
min-width: auto\9;
border: 0;
-ms-interpolation-mode: bicubic;
}
}
.logo-weird {
width: 220px;
margin-left: 20px;
display: block;
float: left;
img {
max-width: 100%;
min-width: auto\9;
border: 0;
-ms-interpolation-mode: bicubic;
vertical-align: middle; // this line causes strange stuff
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment