Welcome, Guest
Please Login or Register.    Lost Password?

Control of vertical alignment
(1 viewing) (1) Guest
Welcome to the ToolsJX forum!


Go to bottomPage: 1
TOPIC: Control of vertical alignment
#422
Control of vertical alignment 4 Months, 2 Weeks ago Karma: 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
djb
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/20 15:12 By djb.
The administrator has disabled public write access.
 
#424
Re:Control of vertical alignment 4 Months, 2 Weeks ago Karma: 1
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
viljem
Admin
Posts: 152
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/21 00:38 By viljem.
The administrator has disabled public write access.
 
#487
Re:Control of vertical alignment 4 Months ago Karma: 0
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['output_script'] .= "<tr valign=\"top;\" id=\"row"....

Regards
David
djb
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting