function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AvinAvin 

Resizing image in Rich Text Area field

Hi,

 

In my lead object I have created Rich text Area fields to store the images.

 I want to use this field in my VF page but I want a fixed size of image. 

 

When I am using that field in my VF page, actual size of Image is coming. I have used the Style sheet to resize the image but it is not working.

 

Please help me to resize the image present in Rich Text Area field.

 

Thanks,

Avinash

Bhawani SharmaBhawani Sharma
Cant apex:image tag help? It has height and width attribute.
AvinAvin

I have tried. But it is not working

Bhawani SharmaBhawani Sharma
you can try with formula field also . They have IMAGE formula.
Ismail Shaik 24Ismail Shaik 24
 <style>
         .sfdc_richtext img{
                border: 0;
                height: 250px;
                width: 300px;
                
            }
</style>

use this style in your visualforce page. it will work