html - Creating a CSS Inside Border on One Side -
how can produce effect of border on inside of 1 side of element?
my goal create marker indicates selected item vertical list. such in mockup below, 3rd item selected:

because updatable state, i'm setting giving li tag class="active", have been going down path of ::after pseudo-element.
the closest have gotten following :
ul li::after { background-color: #fbc123; content: ""; float: right; height: 40px; position: absolute; width: 5px; } this still putting highlight on outside of 40px-by-40px box. how can shift this, 5 pixels right?
i have create jsfiddle, behaving differently see in real code. in jsfiddle yellow lines remain on left, instead of aligning right.
http://jsfiddle.net/evilclosetmonkey/m8a3e/
how can create effect of 5px border on right side only?
is you're after?
first of removed float because floats , position: absolute; can't used together. gave li relative positioning , gave marker proper top/right positions.
Comments
Post a Comment