Skip to content

Instantly share code, notes, and snippets.

@m0nkey
Created April 3, 2012 13:54
Show Gist options
  • Save m0nkey/2292192 to your computer and use it in GitHub Desktop.
Save m0nkey/2292192 to your computer and use it in GitHub Desktop.
CSS3 spread box example
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="jheady">
<!-- Date: 2012-01-30 -->
<style type="text/css" media="screen">
.spread_box{
margin:20px;
padding:10px;
border:1px solid #003264; /* first border */
border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;
/* box-shadow has a spred property, so offset-x, offset-y, blur, spread, and color */
box-shadow:0px 0px 0px 4px #98bee5,0px 0px 0px 6px #003264,3px 3px 5px 6px #ccc; /* second and third border and drop shadow */
-moz-box-shadow:0px 0px 0px 4px #98bee5,0px 0px 0px 6px #003264,3px 3px 5px 6px #ccc;
-webkit-box-shadow: 0px 0px 0px 4px #98bee5,0px 0px 0px 6px #003264,3px 3px 5px 6px #ccc;
}
</style>
</head>
<body>
<div class="spread_box">stuff</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment