See Also: Style Members
The System.Web.UI.WebControls.Style class encapsulates the properties that control the appearance of a Web server control and can be applied to multiple Web server controls to provide a common appearance. You can specify the background color and font color of a control by setting the WebControl.BackColor and WebControl.ForeColor properties, respectively. On controls that can display a border, you can control the border width, the border style, and the border color by setting the WebControl.BorderWidth, WebControl.BorderStyle, and WebControl.BorderColor properties. The size of a Web server control can also be specified by using the WebControl.Height and WebControl.Width properties.