OK, habe die Datei jetzt da. Bin auf die Seite, die du verlinkt hast und habe es links eingefügt. Das auf der rechten Seite kopieren und in eine Datei einfügen..ich denke mal du meinst einfach, den code hier einfügen? Wenn du es anders gemeint hast, schreib bitte nochmal. Hier ist er:
CSS
<style type="text/css">
*{
margin: 0;
padding: 0;
}
html{
height: 100%;
}
#wrap{
width: 100%;
height: 300px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
#wrap > button{
width: 100px;
height: 100px;
display: block;
position: absolute;
left: calc(50% - 50px);
top: calc(50% - 50px);
}
#wrap > button:nth-child(1){
transform: translateX(-100px);
}
#wrap > button:nth-child(2){
transform: translateY(-100px);
}
#wrap > button:nth-child(3){
transform: translateX(100px);
}
#wrap > button:nth-child(4){
transform: translateY(100px);
}
</style>
Alles anzeigen
Danke schonmal!!
Gruß Tobias