I'm afraid without actual HTML/CSS code this is very hard to inspect.
My guess is that either you've set a "border" attribute somewhere, or if your "mainpane" is a table you might not have cellpadding/cellspacing to 0...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/