Z-index on borders
You cannot do that with a border. Interestingly though, you can do it with an outline * { box-sizing: border-box; } .parent { width: 200px; height: 200px; margin: 25px auto; position: relative; background: #bada55; border:12px solid #663399; outline: 12px solid red; padding:25px } .child { width: 220px; height: 100px; background: lightblue; } <div class=”parent”> <div … Read more