It seem to me that you want this.
.pencil {
position: absolute;
bottom: 0;
left: 50%;
margin-left: -5px;
background: #55A5FF;
width: 20px;
height: 150px;
}
.pencil:before, .pencil:after {
width:10px;
background: #4264E8;
height: 150px;
content: "";
display: block;
position: absolute;
}
.pencil:before {
left: -10px;
}
.pencil:after {
right: -10px;
}
Never forget to position your pseudo-elements.
I do not see, however, how this is necessary. You achieve the exact same thing with border-left
and border-right
.