This is meant for a menu. For example I have a div element with 3 spans in it, all of which have some margin, max-width and float (left or right). It is positioned s
.container { padding: 10px; } .parent { width: 100%; background: #7b7b7b; display: flex; justify-content: space-between; height: 4px; } .child { color: #fff; background: green; padding: 10px 10px; border-radius: 50%; position: relative; top: -8px; }