Skip to content

Instantly share code, notes, and snippets.

@JacobHsu
Created September 2, 2014 01:54
Show Gist options
  • Save JacobHsu/d6e9bbce218263ca37b4 to your computer and use it in GitHub Desktop.
Save JacobHsu/d6e9bbce218263ca37b4 to your computer and use it in GitHub Desktop.
#CSS Design a button // source http://jsbin.com/bokuzi/1
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>About Me</title>
<style id="jsbin-css">
img {
display: block;
height: 100px;
width: 300px;
margin: auto;
}
p {
text-align: center;
font-family: Garamond, serif;
font-size: 18px;
}
div {
border-radius: 5px;
border: 2px solid #6495ED;
background-color: #BCD2EE;
height: 50px;
width: 120px;
margin: auto;
text-align: center;
}
a {
text-decoration: none;
color: #3D59AB;
font-family: Verdana, sans-serif;
}
span {
font-weight: bold;
font-size: 18px;
color: #ffffff;
}
</style>
</head>
<body>
<img src="http://s3.amazonaws.com/codecademy-blog/assets/46838757.png"/>
<p>We're Codecademy! We're here to help you learn to code.</p><br/><br/>
<div>
<a href="https://www.facebook.com/codecademy">Friend us on <span>Facebook!</span></a>
</div>
<script id="jsbin-source-css" type="text/css">img {
display: block;
height: 100px;
width: 300px;
margin: auto;
}
p {
text-align: center;
font-family: Garamond, serif;
font-size: 18px;
}
div {
border-radius: 5px;
border: 2px solid #6495ED;
background-color: #BCD2EE;
height: 50px;
width: 120px;
margin: auto;
text-align: center;
}
a {
text-decoration: none;
color: #3D59AB;
font-family: Verdana, sans-serif;
}
span {
font-weight: bold;
font-size: 18px;
color: #ffffff;
}</script>
</body>
</html>
img {
display: block;
height: 100px;
width: 300px;
margin: auto;
}
p {
text-align: center;
font-family: Garamond, serif;
font-size: 18px;
}
div {
border-radius: 5px;
border: 2px solid #6495ED;
background-color: #BCD2EE;
height: 50px;
width: 120px;
margin: auto;
text-align: center;
}
a {
text-decoration: none;
color: #3D59AB;
font-family: Verdana, sans-serif;
}
span {
font-weight: bold;
font-size: 18px;
color: #ffffff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment