I want to organize my list as follows:
Subject Chapter MCQ Duration(min) Physics 1 10 40 40 Chemistry 1 9 30 30 Math 1 10 40 40 Biology 1 12 40 20
So, I tried the following:
<div style="font-family: "Lucida Sans Unicode""> <?php include_once('funcs.php'); $f = new funcs(); $res = $f->get_ques(); printf("%-'.20s", 'Subject'); printf("%-'.20s", 'Chapter'); printf("%-'.20s", 'Marks'); printf("%-'.20s", 'Duration'); ?> <br/> <select> <?php while( $q = mysql_fetch_array( $res ) ) { echo '<option>', printf("%-'-20s", $f->get_sub($q['q_id'])), printf("%-'.20s", $q['chapter']), printf("%-'.20s", $q['mcq']), printf("%-'.20s", $q['time']), '</option>'; } ?> </select> </div>
And my conclusion:

The lines are zigzag. I want these lines to be strict. I tried using a fixed-length font but could not. And I have to remove these points. also. Someone please help me.
source share