+ 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>