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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -