I would recommend just using DIV elements instead.
Also, to save on single/double quotation complications, you can just break out of PHP when you want, and break back into it to echo the variables. This gives your code much more readability and saves on all the echoes. Also ideal if you are using a program that highlights different languages like PHPedit or something similar.
i.e.
CSS:
<style>
.stuID { float:left; width: 150px; }
.studName { float:left; width: 300px; }
</style>
HTML & PHP:
<?php foreach($array as $row): ?>
<div class="resultno">
<div class="stuID"><?=$row['stu_id']?></div>
<div class="stuName"><?=$row['Name']?></div>
</div>
<?php endforeach; ?>
Im guessing at how you want the results to appear on screen, but you get the idea of where I am going with this. Hope I'm not barking up the wrong tree!