views:

15

answers:

0

Apparently YUI RTE seems to have text flow settings for images, left, right, inline, block... Im wondering how I can get 1 option for centering the image, if there is a way to add it with custom code, can any one guide me to the right direction to achieve this ?

I know that to center the image, i will need to add a style of margin-left: auto; margin-right: auto; display: block;

All i need to figure out is how to add this to the image in question, when the button is clicked.

Thankyou