OT: CSS experts? Help needed to center an image
Hi!
I have a little problem, i would like to center an image (see code from codepen).
The image can be at its maximum 200px in width or height. when the image is not 200x200 i want it to center left to right and top to bottom within the imagecontainer.
The HML from codepen.io is displayed in a cWebHTMLBox
https://codepen.io/Datamartin/pen/yLyeMEO
Last edited by MrHalland; 9-Dec-2019 at 08:58 AM.
Reason: Added mor information
Martin Arvidsson, Data Martin i Kungsbacka AB
I have six locks on my door all in a row. When I go out, I lock every other one. I figure no matter how long somebody stands there picking the locks, they are always locking three.