"Angled Div Shape - Slanted / Skewed / Razor-Blade div Shape"
Bootstrap 4.1.1 Snippet by tranhuuphu

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <section > <div class="content"> <h1>Why do we use it?</h1> <p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text,</p> </div> <div class="image-box"></div> </section> </div>
section{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); height: 400px; width: 1200px; background: #f00; box-shadow:0px 25px 30px rgba(0,0,0,.5); display: flex; } .content{ width: calc(50% - 50px); height: 100%; background: #000; box-sizing: border-box; padding: 30px 50px; color: #fff; font-family: sans-serif; line-height: 25px; } .image-box{ width: calc(50% + 50px); height: 100%; background: #f00; box-sizing: border-box; border-left: 100px solid #000; border-bottom: 400px solid transparent; background: url(http://www.divscode.com/bootimg/pexel.jpeg); background-position: -350px -59px; background-repeat: no-repeat; }

Related: See More


Questions / Comments: