Skip to Main Content

Apex 5 CSS Styling image in Form

M.EmmanuelJun 19 2016 — edited Jun 19 2016

In Apex 5.0.3 I have a Form with a couple of fields "Display Image".

pastedImage_0.png

I would like this image to be scaled to its parent container.

I have tried adding:

<style type="text/css">

#P14_IMAGE {

  width: 50px;

  border-style: solid;

  border-width: 1px;

}

</style>

pastedImage_1.png

But this does not work :

pastedImage_0.png

Note that images are cropped -see original image below-:

pastedImage_3.png

How can I make the image be adjusted/scaled to use 100% of its parent container?

Comments
Post Details
Added on Jun 19 2016
2 comments
532 views