mercredi 13 novembre 2019

CSS element won't move

I am trying to make a platformer. I am currently on collision detection. I have set up a test platform. However, even when I try to set it up in a good testing place, it won't move. I have tried setting my object's position attribute to position: absolute;, but it doesn't change. Here's my HTML:

<img src="test.png" alt="move" id="p1" class="platforms">

CSS:

#p1 {
    visibility: visible;
    position: absolute;
    z-index: 4;
    left: 190;
    bottom: 300;
}

Aucun commentaire:

Enregistrer un commentaire