Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 10534 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > how to produce rounded textbox ...
Siva524

how to produce rounded textbox

Replies: 3 | Posted by: Siva524 on 5/7/2012 | Category: C# Forums | Views: 948 | Status: [Member] | Points: 10  


how to produce rounded textbox in c#.net?


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Sabarimahesh
Sabarimahesh  
Posted on: 5/7/2012 7:11:36 AM
Level: Bronze | Status: [Member] | Points: 25

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


<!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">
<style type="text/css">
input
{
border:2px solid #a1a1a1;
padding:10px 40px;
width:300px;
border-radius:25px;
-moz-border-radius:25px; /* Firefox 3.6 and earlier */
}
</style>

<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>


Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Siva524, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sabarimahesh
Sabarimahesh  
Posted on: 5/7/2012 7:12:05 AM
Level: Bronze | Status: [Member] | Points: 25

Siva524, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Gaur1982
Gaur1982  
Posted on: 5/7/2012 7:30:16 AM
Level: Starter | Status: [Member] | Points: 25

HTML Code for rounded corner textbox

<div class="loginboxdiv">
<input class="loginbox" name="username" type="text" />
</div>

The container "div" contains the background image of rounded corners and inside of that the real textbox resides.
CSS Code for rounded corner textbox:

.loginboxdiv
{
margin:0;
height:21px;
width:146px;
background:url(login_bg.gif) no-repeat bottom;
}

.loginbox
{
background:none;
border:none;
width:134px;
height:15px;
margin:0;
padding: 2px 7px 0px 7px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
}

Gaurav Agrawal
http://planetofcoders.com/

Siva524, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/18/2013 10:32:56 PM