#pozycja { text-align: center; color: black; background-color: #000; position: absolute; top: 50%; left: 0px; width: 100%; height: 0px; overflow: visible; display: block } #zawartosc { width: 250px; height: 70px; background-color: red; margin-left: -125px; position: absolute; top: -35px; left: 50%; visibility: visible }