How to align text in a FooterTemplate cell in a GridView
I tried the following, but the text is still centered (there is a parent center tag):
<FooterTemplate> <span style="size:100%; padding:0; text-align: right">Total: </span> </FooterTemplate>
In the parent column of the template, try setting FooterStyle-HorizontalAlign="Right"
FooterStyle-HorizontalAlign="Right"
Can
<FooterTemplate> <div style="text-align: right;"> <span>Total: </span> </div> </FooterTemplate>
works the way you want.
: , : 100% ( , AFAIK)
<FooterTemplate> <span style="display:block; padding:0; text-align: right">Total: </span> </FooterTemplate>
Grid-view , CSS, , , , , , -
tr:last-of-type td { align-content: center; vertical-align: middle; text-align: center; }
, .
Source: https://habr.com/ru/post/1710575/More articles:How can I use a dynamic proxy for constructors that take arguments? - javaSSIS - External .dll disappears - visual-studioПочему "Submissions.Where(s => (false && s.Status == Convert.ToInt16 (" "))) 'создает исключение FormatException? - c#Add include directory for scons - includeTrim leading n alpha characters from a string - c #Exchange character buffer between C # string objects - substringMemberhip.GetUser(имя пользователя) - как вернуть правильный корпус? - c#Mbunite and selenium - unit-testingRails ActiveRecord :: find Go to Release Message - join.NET Web Service - No New Methods Displayed - .netAll Articles