Search image in Textbox using CSS in ASP.net C#

Source Code

<!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 runat="server">
    <title></title>
    <style type="text/css">
        .search
        {
            background: url(search.png) no-repeat;
            padding-left: 18px;
            border:1px solid #ccc;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:TextBox ID="txtsearch" runat="server" CssClass="search" Width="180px"></asp:TextBox>
    </form>
</body>
</html>



Out put:-

Search image in Textbox using CSS in ASP.net C# Search image in Textbox using CSS in ASP.net C# Reviewed by NEERAJ SRIVASTAVA on 11:26:00 PM Rating: 5

No comments:

Powered by Blogger.