This is a migrated thread and some comments may be shown as answers.

Pager Slider not centering

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chameleoki
Top achievements
Rank 2
Chameleoki asked on 04 Sep 2008, 10:05 PM
I have a grid where the pager slider will not center in firefox or safari but will in IE.  In firefox and safari, it's always aligned to the left.  I have the grid with autogenerate columns = false, show groupbar, show statusbar, and the pager is set by: <PagerStyle HorizontalAlign="Center" Mode="Slider" />.  I am using the WebBlue skin.  This is on the latest release (826).

The actual Page: 1 out of X pages does center, left, or right according to the HorizontalAlign property but the slider will always stay to the left.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Sep 2008, 01:26 PM
Hello Chameleoki,

HorizontalAlign does not work for block-level elements, such as RadSlider. In order to center a block-level element, margin:0 auto; is used. In other words, what you need is:


.RadGrid  .radslider
{
    margin:0 auto;
}



Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Chameleoki
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or