PDA

View Full Version : Align Data ingrid



techno_adi
22 Sep 2006, 7:07 AM
Hi,
how do i align a data of specific coloumn to right/center?

thanks

Animal
22 Sep 2006, 9:48 AM
For column n, add text-align:<whatever> to the style for rule selector ".ygrid-col-n"

jack.slocum
22 Sep 2006, 11:01 AM
If you have multiple grids, you can also define:

#my-container-id .ygrid-col-n{
text-align:right;
}

techno_adi
25 Sep 2006, 5:44 AM
thanks..this worked :)

kovtik
5 Dec 2006, 5:29 AM
If you have multiple grids, you can also define:

#my-container-id .ygrid-col-n{
text-align:right;
}However, how can I align the header? I tried to use

#grid .ygrid-header-1 {
text-align: right;
}
but it works only in IE :(