⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

text alignment in column (flexigrid)



macphisto
  • profile picture
  • Member

Posted 13 September 2012 - 20:07 PM

How can I align text in column in flexigrid?

midnigther
  • profile picture
  • Member

Posted 14 September 2012 - 01:13 AM

FILE: ../themes/css/flexigrid.css
LINE: 685


.text-left
{
text-align: center;
}

macphisto
  • profile picture
  • Member

Posted 14 September 2012 - 09:49 AM

but I want align only two column

midnigther
  • profile picture
  • Member

Posted 14 September 2012 - 11:40 AM

FILE: list.php
LINE: 12

Put this code:

<?php echo ($column->field_name == 'password') ? 'foo ' : '';?>


This define a new CSS class call foo in your password column.
Add a new CSS class into flexigrid.css and overwrite the align property.

macphisto
  • profile picture
  • Member

Posted 14 September 2012 - 16:47 PM

thanks