Skip to content

Instantly share code, notes, and snippets.

@chrdesigner
Last active April 15, 2016 20:04
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 chrdesigner/9f9d3813ad52376e676ab8093c9a3ac4 to your computer and use it in GitHub Desktop.
Save chrdesigner/9f9d3813ad52376e676ab8093c9a3ac4 to your computer and use it in GitHub Desktop.
Borda Serrilhada Somente com CSS 3
background-repeat: repeat-x;
background-size: 25px 20px, 25px 20px;
blockquote:after {
content: "";
position: absolute;
display:block;
width: 100%;
height: 29px;
right: 0;
bottom: -24px;
left: 0;
background: -webkit-linear-gradient(45deg, transparent 70%, white 75%) 0 50%, -webkit-linear-gradient(130deg, transparent 70%, white 75%) 0 50%;
background: -moz-linear-gradient(-45deg, transparent 70%, white 75%) 0 50%, -moz-linear-gradient(45deg, transparent 70%, white 75%) 0 50%;
background: -o-linear-gradient(-45deg, transparent 70%, white 75%) 0 50%, -o-linear-gradient(45deg, transparent 70%, white 75%) 0 50%;
background: -ms-linear-gradient(-45deg, transparent 70%, white 75%) 0 50%, -ms-linear-gradient(45deg, transparent 70%, white 75%) 0 50%;
background: linear-gradient(-45deg, transparent 70%, white 75%) 0 50%, linear-gradient(45deg, transparent 70%, white 75%) 0 50%;
background-repeat: repeat-x;
background-size: 25px 20px, 25px 20px;
}
body {
font-family: Verdana;
background:url(http://www.chrdesigner.com/wp-content/themes/chrdesinger/images/backgrounds/bg-blog.jpg);
}
blockquote {
background: white;
min-width: 320px;
position: relative;
padding: 10px 5px;
margin: 0 10px;
text-align: center;
}
<blockquote>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue massa nec velit tincidunt tincidunt.
Sed sit amet ullamcorper tellus.
</blockquote>
background: linear-gradient(-45deg, transparent 70%, white 75%) 0 50%, linear-gradient(45deg, transparent 70%, white 75%) 0 50%;
-webkit-linear-gradient = /* WebKit browsers */
-moz-linear-gradient = /* Mozilla Firefox 4 to 18 */
-o-linear-gradient = /* Opera */
-ms-linear-gradient = /* Internet Explorer 10+ */
linear-gradient = /* Mozilla Firefox 19+ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment