Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Is it possible to center an image into a UltraFromattedTextEditor ?
posted

Hi,

I insert icons in my FormattedTextEditor like that :

 

string encodedImage = editInfo.EncodeImage(this.MYImage);

editInfo.InsertValue(String.Format("<img style=\"width:25px; height:25px;\" data=\"{0}\" />", encodedImage));

 

is it possible to center that icon ? I can't find a way to do that

Thanks

David

Parents
  • 37774
    Verified Answer
    posted

    David,

    You could try centering a paragraph tag:

    <p style=\"text-align:Center;\"><img style=\"width:25px; height:25px;\" data=\"{0}\" /></p>

    -Matt

Reply Children
No Data