By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,687 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,687 IT Pros & Developers. It's quick & easy.

How do align center "ui-icon-check" CSS?

P: 26
I want to center the ui-icon-check.

I tried, but it not display center.
Expand|Select|Wrap|Line Numbers
  1. if($rs['status'] == 'present'){
  2.  
  3.                             $tbl .= '<td style="text-align:center;"><a href="/modules/attendance/change_attendance.php?c='.getNameOfStudent($id).'&class='.$class.'" title="present" target="_blank"><span class="ui-icon ui-icon-check"></span></a>&nbsp;</td>';
  4.  
  5.  
  6.  
  7.                         }elseif($rs['status'] == 'absent' || $rs['status'] == 'Absent'){
  8.  
  9.                             $tbl .= '<td style="text-align:center;"><a href="javascript:void(0);" title="absent"><span class="ui-icon ui-icon-closethick"></span></a>&nbsp;</td>';
  10.  
  11.  
  12.  
  13. }
  14.  
Jan 27 '12 #1
Share this Question
Share on Google+
1 Reply


drhowarddrfine
Expert 5K+
P: 7,435
Won't help unless you show the generated html and css.
Jan 27 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.