Maybe use a float for this? The float property will wrap text around an image, but if there is no image, the text will display. Not exactly a perfect description, but I use float to solve many design challenges. It may help??
http://css.maxdesign.com.au/floatutorial/
is one of many results from google
Good luck.
J