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
Aruna VasahanAruna Vasahan 

Sizing the image inside rich text field

I have inside my "Account"object a rich text field to store images. When I tried to set size to the image I'm not able to do that. But if I add text content within it the styling is working perfectly with my text content. Only my image is not responding to the style given for it. I have given my code below.Can anyone figure out what's wrong with the code?

     <html> 
     <head> 
     <style type="text/css"> 
     myDiv 
     { 
      border:0px; 
      height:50px; 
      width:10px; 
     } 
     </style> 
     </head> 
     <body> 
     <div id="myDiv">Picture {!Picture__c}</div> 
     </body>
     </html>

Thanks
Aruna Vasahan
 
Mikey BooshMikey Boosh
You might want to add an id tag in your Style...
#myDiv
 
<style type="text/css"> 
#myDiv { 
      border:0px; 
      height:50px; 
      width:10px; 
     } 
</style>