thanks alot for your quick response. I tried it out and first it did not work. Next I made a codepen and there it works with all kinds of browsers.
So it has to do with some wordpress CSS stuff I guess.
Gotta search a little for the real reason I guess.