Created
December 31, 2011 10:24
-
-
Save debloper/1543611 to your computer and use it in GitHub Desktop.
CSS Borders: simpler implementation, coolness intact
This file contains 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> | |
<title>CSS Borders</title> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
</head> | |
<body> | |
<div id="zero"></div> | |
</body> | |
</html> |
This file contains 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
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