Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I have wote the css style for textbox to circle shape

css:

.circle
       {
  width: 100px;
   height: 100px;
   background: red;
   -moz-border-radius: 50px;
   -webkit-border-radius: 50px;
   <%--border-radius: 50px;--%>
    behavior: url(ie-css3.htc);
       }



Now, i have a problem to enter text in textbox with in the boundaries(with in the circle only)
help me.
Posted
Updated 18-Dec-13 20:18pm
v2
Comments
JoCodes 19-Dec-13 2:18am    
Is it not allowing to enter text?
Raajkumar.b 19-Dec-13 2:53am    
i did enter text in circle
but i want enter text with in the boundaries of a circle

1 solution

CSS
<style type="text/css">
        .txtbox
        {
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
        }
    </style>


<asp:TextBox ID="TextBox1" runat="server" cssclass=”txtbox”>
 
Share this answer
 
v3
Comments
Raajkumar.b 19-Dec-13 0:58am    
i am not having problem with circle shape. i have a problem to enter the text with in the boundaries of an circle only.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900