Recently i was doing some test using CSS.Then i got very nice css, which one we can use in our real time project.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomCSSTest.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.errors
{
border: solid 1px Blue;
background-color: #d0e6ff;
padding: 10px;
}</style>
</head>
<body>
<form id="form1" runat="server">
<table>
<tr>
<td>
<br />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TextBox1"
runat="server" ErrorMessage="Enter Your Name Please!" CssClass="errors" ForeColor="Blue"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Button ID="Button1" runat="server" Text="Button" />
</td>
<td>
</td>
</tr>
</table>
<div></div>
</form>
</body>
</html>
i was using it. it works super…
Nice to know.