html5 - Creating CSS shape dividers between content -


how can create such section in wordpress ? , have content in both black , white sections adaptive diagonal line ?

enter image description here

you can use css clip-path. can use website generate clip-path.

http://bennettfeely.com/clippy/

#mydiv{  height:200px;  width:400px;  background-color:red;  -webkit-clip-path: polygon(0 0, 100% 0, 40% 100%, 0% 100%);  clip-path: polygon(0 0, 100% 0, 40% 100%, 0% 100%);  }
<div id="mydiv">  </div>


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -