.layer-values { position: absolute; left: 50%; top: 30%; } .cross { display: block; position: relative; width: 1em; height: 1em; left: -0.5em; top: -0.5em; } .values-container { position: relative; background-color: white; left: calc( 1em - 1px); top: -1.3em; min-width: 15em; } .value-list { list-style: none; } .pointer { position: relative; width: 0px; height: 0px; left: 0.5em; border-top: 0.5em solid transparent; border-bottom: 0.5em solid transparent; border-right: 0.5em solid black; }