Without more information about what you're doing, I assume you're looking for SVG, which unfortuanately only works with the latest browsers; Firefox 1.5, Opera 9, Safari 2. Support in these browsers is also preliminary, and may not quite be up to snuff for production usage of this new technology.
IE does not support the SVG standard. Alternatively, in Explorer, there is the proprietary VML feature.
Then there is also the <canvas> element, which is part of the WHATWG HTML 5.0 specification.
I can't recall which browsers support that, but think it is Firefox 1.5, Safari 2, and Opera 9, again no support in Explorer.
Then again, there may be a simpler solution for your problem using plain CSS and markup, but it's difficult to ascertain what you're going for from the description you've provided.
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design