I am trying to center a label in code on a webform in a webapplication. I tried using the code
VB Code:
label1.left = (Me.width/2)-(label1.width/2)
and realized later that the left and top properties don't exist when building a web application. I am new to building web apps and was wondering if there was another method to center controls in code, possibly using HTML Tags? If so where would I put the tags to make it work, I know little to nothing about HTML. Any help is appreciated. Thanks.




Reply With Quote