Click to See Complete Forum and Search --> : Add color to my form
wild_bill
Apr 27th, 2005, 09:55 AM
My form is very bland, being just black and white. I did this in paint. How could I do something like this through VS?
http://www.levenmusic.com/public/webform.jpg
nemaroller
Apr 27th, 2005, 10:08 AM
put an enclosing <div></div> around your textboxes, and use CSS to set the backcolor.
You should always have a style sheet to set common display colors etc..
You put a link tag in the head section of your aspx page like so.
<head>
...
<link rel="stylesheet" type="text/css" href="Styles.css">
</head>
You enclose your textboxes in a div with a classid (colored in this case) like so:
<div class="colored">
<asp:textbox id="123" runat="server" />
<asp:textbox id="124" runat="server" />
</div>
You add a style-sheet to your project (add new item... style sheet.. call it 'Styles.css'),
then add a style identifier for your class ('colored').
in the style sheet:
div.colored
{
padding: 20px;
width: 400px;
border: solid 1px #000000;
background-color: #555555;
}
Save all, and run.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.