Skip to content

Instantly share code, notes, and snippets.

@debloper
Created December 31, 2011 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debloper/1543611 to your computer and use it in GitHub Desktop.
Save debloper/1543611 to your computer and use it in GitHub Desktop.
CSS Borders: simpler implementation, coolness intact
<!DOCTYPE html>
<html>
<head>
<title>CSS Borders</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="zero"></div>
</body>
</html>
body {
background: #e6e9ec;
}
div {
height: 64px;
width: 256px;
margin: 32px auto;
}
div#zero {
background: #eee;
border-radius: 2px;
border: 1px solid #f8f8f8;
box-shadow: 0 0 1px #666;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment