css - CSS3 double drop border? -
css - CSS3 double drop border? -
ok, wish create http://i.imgur.com/jox0enw.jpg. of modular type, might have button class that'll create that, , class can utilize apply sections.
right have:
.double-drop { position: relative; padding: map-get($padding, xl); margin-top: (-1 * 280px); border: 3px solid $black; background-color: $white; &:before { content: ''; position: absolute; z-index: -1; top: (-1 * map-get($padding, m)); right: (-1 * map-get($padding, m)); width: 100%; height: 100%; border: 3px solid $black; background-color: $lighter-grey; } }
which works, , creates effect on sections. not if section within parent absolutely positioned. (the drop shadow goes behind..)
i imitate effect in image, buttons, , transition translate moves or not.
would possible first of all?
multiple borders on css button
perhaps using multiple shadows borders simple solution? degrades gracefully in browsers don't back upwards it, , it's easy work with.
jsfiddle example
.shadow-button { padding:10px; border:solid 3px #000000; display:inline-block; /* used shrink wrap div around contents, has default margin */ -webkit-box-shadow:8px -8px 0px -2px #cccccc, 8px -8px 0px 1px #000000; -moz-box-shadow:8px -8px 0px -2px #cccccc, 8px -8px 0px 1px #000000; box-shadow:8px -8px 0px -2px #cccccc, 8px -8px 0px 1px #000000; font-family:verdana, tahoma, arial, sans-serif; font-weight:bold; } p {padding:10px;}
<div class="shadow-button">play music video</div>
browser support: http://caniuse.com/#search=box
css css3 border
Comments
Post a Comment