I have the Progress bar div and the asp:label inside it. How to style it to have that Label inside it and in the middle of that div ?
<div id="progressbar" style="width: 350px;">
<asp:Label ID="percentLabel" runat="server" Text="0" />
</div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way (if you use it as inline) is to set
text-align:centeron the div.Alternatively, if you want to use it as a block element, you should set the following properties on the label
display:block,width: XXpx(where XX < than 350px) andmargin:0px autowhich means have equal distance from the sides, thus centered..