How To Offset A Border Css Code Example


Example: css offset border


* {
box-sizing: border-box;
}

.container {
height: 200px;
width: 200px;
position: relative;
background-color: red;
margin: 20px;
}

.inner {
width: 100%;
height: 100%;
position: absolute;
border: 2px solid black;
top: -10px;
left: -10px;
z-index: 10;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable