- Posts: 44
- Thank you received: 0
Hi,
The default vertical alignment in 'centre' for all rows. I cannot see a way to control the alignment. Ideally I would like my rows to have a 'top' alignment.
Can you tell me if this is possible please?
Thank you
David
Please Log in or Create an account to join the conversation.
Hi,
alignment cannot be set in admin area (for now). If you have some html skills you can do it in the code in 2 ways. If you define new css class selector (/components/com_grid/css/grid.css) and apply it in html tag (/components/com_grid/layouts/GridView.php) like this for the grid_title: <span class=\"grid_title \">".$this->_config->tableCaption."</span>";
Or directly with html valign in (/components/com_grid/layouts/GridView.php) for rows around line 235.
Best regards,
Viljem
Please Log in or Create an account to join the conversation.
Viljem,
Thank you for this information. I made the change and it worked fine.
Here's the change in case anyone else needs it:
$field .= "<tr valign=\"top;\" id=\"row"....
Regards
David
Please Log in or Create an account to join the conversation.