Browser adding line breaks


$markup->content .= "<div class='date'>Posted on: ".$postdate;
if (!empty($updated)) {
	$markup->content .= " Updated: ".$updated;
}
$markup->content .= "</div>\
</div>\
";

Somehow looks like…


Posted on:
2010-06-11
Updated:
2010-06-21

when I look at it in the browser. The extra close div is for code above this part.

The view source even has it correctly.


<div class='date'>Posted on: 2010-06-11 Updated: 2010-06-21</div>

(smacks forehead)

I knew it had to be something simple. I had the date class defined for two different things. I went and renamed one of them.

What width does the ‘date’ class div have? Is it wide enough to display everything on one line?