Stretch a label control to edge of browser

SteveInBeloit

Well-known member
Joined
May 22, 2006
Messages
132
Programming Experience
10+
Hi,

I have an asp .net app that displays a message from the database. It may be a short phrase, or a couple of sentences. I call the db and retrieve the message, then set the label.text to the message. I want it to go from left to right as far as the browser is wide before it wraps, not just as far as I have made the label. The text is 1 inch tall. How can I do this? Or is there a better way then using the label control?

Thanks,

Steve
 
Set its width to "100%"
 
Back
Top