Results 1 to 8 of 8

Thread: OT: CSS experts? Help needed to center an image

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Kungsbacka, Sweden

    Default OT: CSS experts? Help needed to center an image


    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 is displayed in a cWebHTMLBox
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts