How to right-align a Pager on the right side?

Discussion in 'ASP .Net' started by Bogdan, Jun 16, 2009.

  1. Bogdan

    Bogdan Guest


    I have a grid view with Pager at the bottom. I'd like the pager to be
    right-aligned. I was hoping that assigning a CssClass to PagerStyle would do
    the trick. Unfortunately this solution works only in IE6 and IE7.

    I tried the following
    ..gridPager { text-align: right; }


    tr.gridPager td { text-align: right; }

    The Pager is rendered as a table with a single row and a single column in a
    grid view row. The PagerStyle is applied to the outer row (i.e. grdivew
    row) and seems to be ignored in pager's in other browsers.

    Is there a way to deal with it?

    Bogdan, Jun 16, 2009
    1. Advertisements

  2. Bogdan

    Bogdan Guest


    Thanks for a quick reply.

    Unfortunately this is no different. It renders the same as before. The
    only difference is that the style is applied inline instead of linking to an
    external css. It is still applied to the outer row and I get the same
    results in other browsers.

    Bogdan, Jun 16, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.