border-width:0 25px 25px 0; Define right , bottom width which creates the triangle (folded part).
Step #1:-Define Div
<div class="foldMe">
<p>Thank you for visiting our website www.technicalkeeda.com , hope you enjoy all the articles posted by us. Please share our articles within your friend circle. This will help us to grow on broader level.</p>
</div>
Step #2:-Define Css
<style>
.foldMe {
position:relative;
overflow:hidden;
padding:10px;
margin:2em 10%;
color:#fff;
background:#FF3300;
}
.foldMe:before {
content:'';
position:absolute;
top:0;
right:0;
border-width:0 25px 25px 0;
border-style:solid;
border-color:#B22400 #fff;
-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.4),-1px 1px 1px rgba(0,0,0,0.2);
-moz-box-shadow:0 1px 1px rgba(0,0,0,0.4),-1px 1px 1px rgba(0,0,0,0.2);
box-shadow:0 1px 1px rgba(0,0,0,0.4),-1px 1px 1px rgba(0,0,0,0.2);
}
</style>
Step #3:-Finish Enjoy the Live demo :)
Hi I am Yashwant founder of www.technicalkeeda.com, Purpose of this website to share the programming knowledge in the form post , blogs and articles.