Alignment column

Align columns in ChronoForms tables.

Overview

By default, CF table columns are left-aligned.
Add custom CSS to the Table Header box, targeting the specific column classes with text-align properties.

Answered
go goliath 29 May, 2015
By default the columns in ChronoConnectivity are aligned to the left.
Is there a possibility to align (some) columns to the right (or center)?
Gr GreyHead 04 Jun, 2015
Answer
Hi geertmartens,

Putting this in the Table Header box seems to work OK
<?php
$jdoc = JFactory::getDocument();
$style = "
.gbs3 .th-model_id\.column {
  text-align: right;
}
.gbs3 .td-model_id\.column {
  text-align: right;
}
";
$jdoc->addStyleDeclaration($style);
?>
Replace model_id and column with the values from your listing.

Note that the \ is required as the class has a . in it.

Bob
This topic is locked and no more replies can be posted.