> Cool! Now, if you don't change the CSS but the JS and instead of appending a > text node as a child, you insert an image as the child note of > p#description, does not the image get centered? > > I know this is now moving away from JS to CSS but that is essentially what I > was trying to do. http://icant.co.uk/sandbox/generatedHTML.html yes. -- Chris Heilmann Book: http://www.beginningjavascript.com Blog: http://www.wait-till-i.com Writing: http://icant.co.uk/