I don't see one single style being used in your example cswales. Also a "text" style is just the name I am guessing. Use what Vbabiy showed, that would work fine. Also think about not having PHP write all the HTML for you. Only use PHP when it is needed. Such as:
<html>
<head>
<title><?php echo "$title"; ?></title>
</head>
<body>
<div class='text'>The following Properties were found and are listed <strong><?php echo "$limit"; ?></strong> per page.</div>
<table border="0" width="100%" cellpadding="0" cellspacing="0" class='text'>
<tr>
<td>This is the output from the database.</td>
</tr>
</table>
</body>
</html>
See ... you can use PHP wherever you want. Don't have print(), echo(), sprint(), or anything else do all the work that a normal browser can do. Just have PHP wherever PHP is needed. It will make troubleshooting way much easier for design issues!
Keep going, your doing fine.
Chad