title: How can I right-align my GridView paging buttons?
body: <p>I can't get my paging buttons:  "&lt;&lt; &lt; > >>" to align right.
  Here is my GridView:</p>
  
  <pre><code>               &lt;asp:GridView ID="GridView1" ShowHeader="false" AllowPaging="true" PageSize="2"
                                  AutoGenerateColumns="false" Width="100%" runat="server"&gt;
                                  &lt;Columns&gt;
                                      &lt;asp:TemplateField&gt;
                                          &lt;ItemTemplate&gt;
                                             foo
                                          &lt;/ItemTemplate&gt;
                                          &lt;ItemStyle CssClass="blah" /&gt;
                                      &lt;/asp:TemplateField&gt;
                                      &lt;asp:TemplateField&gt;
                                          &lt;ItemTemplate&gt;
                                              bar
                                          &lt;/ItemTemplate&gt;
                                          &lt;ItemStyle CssClass="pluh" /&gt;
                                      &lt;/asp:TemplateField&gt;
                                  &lt;/Columns&gt;
  
                                  &lt;PagerStyle CssClass="gridpager" HorizontalAlign="Right" /&gt;
                                  &lt;PagerSettings Mode="NextPreviousFirstLast" FirstPageText="&lt;&lt;" PreviousPageText="&lt;"
                                      NextPageText="&gt;" LastPageText=" &gt;&gt;"  Position="Bottom" /&gt;
  
                              &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>And the CSS style:</p>
  
  <pre><code>   .gridpager, .gridpager td
      {
         padding-left: 5px;
         text-align: right;
      }    
  </code></pre>
  
  <p>If I remove the PageStyle CssClass and use HorizontalAlign="Right" on PagerSettings it works, but then I don't get the padding I need.  And specifying both a CssClass and HorizontalAlign like my sample doesn't work.</p>
  
  <p>What do I need to do?</p>
  
  <p>Thank you!</p>