Created
July 20, 2014 11:12
-
-
Save focusaurus/bd03c01918f52566aa8b to your computer and use it in GitHub Desktop.
moo.com business card done in HTML/CSS
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, | |
body, | |
div, | |
span, | |
applet, | |
object, | |
iframe, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
p, | |
blockquote, | |
pre, | |
a, | |
abbr, | |
acronym, | |
address, | |
big, | |
cite, | |
code, | |
del, | |
dfn, | |
em, | |
img, | |
ins, | |
kbd, | |
q, | |
s, | |
samp, | |
small, | |
strike, | |
strong, | |
sub, | |
sup, | |
tt, | |
var, | |
b, | |
u, | |
i, | |
center, | |
dl, | |
dt, | |
dd, | |
ol, | |
ul, | |
li, | |
fieldset, | |
form, | |
label, | |
legend, | |
table, | |
caption, | |
tbody, | |
tfoot, | |
thead, | |
tr, | |
th, | |
td, | |
article, | |
aside, | |
canvas, | |
details, | |
embed, | |
figure, | |
figcaption, | |
footer, | |
header, | |
hgroup, | |
menu, | |
nav, | |
output, | |
ruby, | |
section, | |
summary, | |
time, | |
mark, | |
audio, | |
video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; | |
font: inherit; | |
vertical-align: baseline; | |
} | |
/* HTML5 display-role reset for older browsers */ | |
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
menu, | |
nav, | |
section { | |
display: block; | |
} | |
body { | |
line-height: 1; | |
} | |
ol, | |
ul { | |
list-style: none; | |
} | |
blockquote, | |
q { | |
quotes: none; | |
} | |
blockquote: before, blockquote: after, q: before, q: after { | |
content: ''; | |
content: none; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
body { | |
font-family: 'Roboto', sans-serif; | |
background-color: #f5f7f9; | |
color: #7b8c9a; | |
text-align: center; | |
font-size: 24px; | |
margin: 1em; | |
} | |
h1 { | |
font-family: 'Julius Sans One', sans-serif; | |
color: #424044; | |
letter-spacing: 0.3em; | |
padding-bottom: 0.2em; | |
margin-top: 48px; | |
margin-bottom: 20px; | |
border-bottom: 3px solid #424044; | |
display: inline-block; | |
font-size: 48px; | |
} | |
h2 { | |
font-size: 38px; | |
letter-spacing: 0.1em; | |
margin-bottom: 0.8em; | |
} | |
img { | |
display: block; | |
margin: auto; | |
} | |
h3 { | |
font-size: 26px; | |
margin-bottom: 0.4em; | |
} | |
.contact-info-left { | |
position: absolute; | |
bottom: 48px; | |
left: 48px; | |
} | |
.contact-info-right { | |
position: absolute; | |
bottom: 48px; | |
right: 48px; | |
} | |
.moo-business-card { | |
border: 1px dashed black; | |
width: 938px; | |
height: 630px; | |
position: relative; | |
} | |
</style> | |
<link href='http://fonts.googleapis.com/css?family=Julius+Sans+One|Roboto' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<div class="moo-business-card"> | |
<header> | |
<h1>Peter Lyons</h1> | |
</header> | |
<h2>node.js expert consultant</h2> | |
<img src="http://peterlyons.com/images/pl_lizm_drawing.jpg"> | |
<div class="contact-info-left"> | |
<h3>[email protected]</h3> | |
<h3>http://peterlyons.com</h3> | |
</div> | |
<div class="contact-info-right"> | |
<h3>917-796-6412</h3> | |
<h3>@focusaurus</h3> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment