Hi Ananth. ananth balasubramanyam: > I am replacing the text of a text element with a new text string and > am trying to shift the text element, either to the left or the right based > on the the difference in old and new widths(so as to maintain the > center alignment). Here is a sample code. I dont > seem to be visually getting the desired results. Could somebody please > help me with this. Am i doing something wrong ?
Not addressing your actual problem, but why don't you just set text-anchor="middle" on your text element so you the centering is done automatically? Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
