Skip to content

Instantly share code, notes, and snippets.

@peterwilsoncc
Created June 18, 2013 06:45
Show Gist options
  • Select an option

  • Save peterwilsoncc/5803141 to your computer and use it in GitHub Desktop.

Select an option

Save peterwilsoncc/5803141 to your computer and use it in GitHub Desktop.
Box shadow with border fallback
.avoid-ids {
width: 200px; height: 50px; /* for demo */
background-color: #ddd;
border: solid #999;
border-width: 0 1px 1px 0;
border: 0 solid rgba(0,0,0,0);
-webkit-box-shadow: 0 2px 2px rgba(0,0,1,.25);
box-shadow: 0 2px 2px rgba(0,0,1,.25);
}
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Trickery</title>
</head>
<body>
<div class="avoid-ids">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment