Created
June 13, 2014 20:03
-
-
Save drmmr763/12c782221728770a7d9d to your computer and use it in GitHub Desktop.
Strangeness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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