Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Align header with column
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Align header with column
#30557
Re:Align header with column 11 Years, 10 Months ago Karma: 2
I would like right-alignment for the columns headers. So therefore the code must be:

{$id} TR TD.align_right,
{$id} TR TH.align_right
{
text-align: right;
}

But what is $id? To me, and from what I've read around these forums, $id is the Joomla value assigned to a module (published or unpublished).

Whatever it is I choose for $id, is this the value I put into Columns Settings -> CSS Class?
The administrator has disabled public write access.
 
#30560
Re:Align header with column 11 Years, 10 Months ago Karma: 748
{$id} is predefined variables which will be replaced with ID of the table when it is used in "CSS Styles" parameter.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#30569
Re:Align header with column 11 Years, 10 Months ago Karma: 2
So then I do not touch that string.


Ok, the code I used is:

{$id} TR TD.align_right,
{$id} TR TH.align_right
{
text-align: right;
background-color: #EEEEEE;
}

The results I get is found here:

{link removed by author}


My goal is to have the text of the TH align with the numbers/values in the TDs.....

Edit: The Point Spread and Points For fields are not right justified in the Alias field, but the others are. Which means the Alias field has no effect if I include TD and TH in the above code. So then shouldn't they be lined up on the right edge of the text?
Last Edit: 2012/08/14 08:00 By JugglingReferee.
The administrator has disabled public write access.
 
#30570
Re:Align header with column 11 Years, 10 Months ago Karma: 748
Use the next code:

{$id} TR TD.align_right,
{$id} TR TH.align_right
{
text-align: right;
background-color: #EEE;
padding-right: 5px;
}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#30571
Re:Align header with column 11 Years, 10 Months ago Karma: 2
Awesome! Thank you.

I was in the middle of googling padding individual cells. cell-padding is for the entire table, I believe. (Rather than a per-row basis.)


Thanks!
The administrator has disabled public write access.
 
Go to topPage: 12