Just add an attribute , Label1.Attributes.Add("style","align=center"); ..
Ideally in large projects you would be using a CssClass for each style, to
assure uniformity across the site..
My Guess:
<center> is a depracated HTML tag - meaning it's there, but not supposed to
be used any longer because we have better ways to do it. Styling is
"supposed" to be done with css like Sreejith shows, and not HTML tags. Same
would be then for <bold>, <strong> etc... (i.e., don't use them and use CSS
instead).
-HTH
-F
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. After that, you can post your question and our members will help you out.