How to create effect on Textbox using CSS ?



We can add very nice effect on Textbox using this CSS like this

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <style type="text/css">
    text {
    border: 1px solid #666;
    border-radius: 5px;
    padding: 3px;

.text:focus {
    border: 1px solid #07c;
    box-shadow: 0 0 5px #07c;
    outline: none;
    <form id="form1" runat="server">
        UserName : <asp:TextBox ID="TextBox1" CssClass="text" runat="server"></asp:TextBox>
        <br /> <br /> 
        Password&nbsp; : <asp:TextBox ID="TextBox2" CssClass="text" runat="server"></asp:TextBox>
        <br />


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.