Hi, i want to know why this code wont work

PHP Code:
<head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
style type="text/css">
#wrapper{float:left}
img{float:left}
#text{float:left; border-right:1px solid black; height:auto; padding:10px;}

</style>

</
head>

<
body>

<
div id="wrapper">

<
img src="http://3.bp.blogspot.com/-tPnVRHcTZ4A/Tbli9XhCnII/AAAAAAAAjeg/aZG5zXz7fDQ/s1600/tumblr_lk0jjkQ0zx1qds9mm.jpg"/>
<
div id="text">TEXT</div>
</
div>
</
body>
</
html

My intention is to make the left-border of "text" id long such as the main wrapper height, that is conditioning essentially from the height of loaded image.
Actyallu the height of the element is "static" and related to the text height itself.. Can be it fixed?