Alignment column

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)?
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
goliath 04 Jun, 2015
Thanks Bob! This works!
This topic is locked and no more replies can be posted.