-
-
Save b4z81/2027992 to your computer and use it in GitHub Desktop.
Css: Nir image replacement
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
.nir { | |
height:100px; /* height of replacement image */ | |
width:400px; /* width of replacement image */ | |
padding:0; | |
margin:0; | |
overflow:hidden; | |
} | |
.nir:before { | |
content:url(image.gif); | |
display:inline-block; | |
font-size:0; | |
line-height:0; | |
} |
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
.nir { | |
height:100px; /* height of replacement image */ | |
width:400px; /* width of replacement image */ | |
padding:0; | |
margin:0; | |
overflow:hidden; | |
} | |
.nir:before { | |
content:url(image.gif); | |
display:inline-block; | |
font-size:0; | |
line-height:0; | |
} | |
<!--[if lte IE 7]> | |
<style type="text/css"> | |
.nir { | |
height:100px; | |
padding:0; | |
margin:0; | |
overflow:hidden; | |
text-indent:-9000px; | |
background:url(image.gif) no-repeat 0 0; | |
} | |
</style> | |
<![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment