Created
July 26, 2012 01:43
-
-
Save jsnkuhn/3179780 to your computer and use it in GitHub Desktop.
Contact Info badge Thingy
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
/* Contact Info badge Thingy */ | |
body{background:radial-gradient(#fff,#ddd);} | |
#container { | |
position:relative; | |
width:550px; | |
border:1px solid rgba(255,255,255,0); | |
border-radius:4px; | |
box-shadow:inset 4px 4px 8px rgba(255,255,255,.4),inset -4px -4px 8px rgba(255,255,255,.8); | |
background-color:#f3db7a; | |
background: | |
linear-gradient(to right,rgba(255,255,255,.0),rgba(255,255,255,.3) 50%,rgba(255,255,255,.0) 55%), | |
linear-gradient(-35deg,rgba(255, 204, 0,.6),rgba(255, 204, 0,.5)), | |
url('http://subtlepatterns.com/patterns/white_leather.png'); | |
margin:0 auto; | |
} | |
#info { | |
background:rgba(255,255,255,.6); | |
text-align:left; | |
box-shadow:0 0 5px rgba(0,0,0,.4); | |
border-radius:8px; | |
padding:12px; | |
margin:8px; | |
min-width:300px; | |
min-height:140px; | |
} | |
#photo { | |
position:absolute; | |
right:-2px; | |
top:-1px; | |
height:101%; | |
width:auto; | |
padding:0px; | |
margin:0px; | |
box-shadow:-2px 0 5px -2px rgba(0,0,0,.8); | |
border-radius:0 4px 4px 0; | |
} | |
#photo:before{ | |
content:''; | |
height:100%; | |
width:100%; | |
position:absolute; | |
top:0; | |
left:0; | |
border-radius:0 4px 4px 0; | |
background:transparent; | |
box-shadow:inset 0px 4px 8px rgba(255,255,255,.4),inset -4px -4px 8px rgba(255,255,255,.8); | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="container"> | |
<div id="info"> | |
<p>Wiskers T. Kitty<br /> | |
<strong>Head Kitty</strong><br /> | |
<a href="http://placekitten.com/260/260">placekitten.com/260/260</a><br /> | |
<br /> | |
Kitty<br /> | |
Address<br /> | |
Here<br /> | |
<br /> | |
Phone: <br /> | |
Email: | |
</p> | |
</div> | |
<div id="photo"><img alt="Rebecca Littman" src="http://placekitten.com/260/260"/></div> | |
</div> |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment