Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Am working on ASP.Net C#, SqlServer 2005.

I have Created a Website with Page width = 1000. NOW i need Rounded Corners for every page. I need to set in Master Page of the Website.

I have Already set Borderradius:20px; but am not getting.

This is my css code.

CSS
.table
{
border-radius:20px;
-webkit-border-radius:20px;
}


and finally added this as in TABLE..... Class="table"

But its not working...Please help me...it should be implement in MASTER PAGE.

Please can you suggest me how to do this.

Thanks in Advance.
Posted
Updated 1-Jul-12 19:29pm
v2
Comments
Ganesan Senthilvel 2-Jul-12 1:30am    
CSS format

Hi,
Use this class for table:
CSS
.table
{
    border:1px solid #92b7d0;
    padding:10px 40px;
    background:#E2E8F1; /*#f6f6f6;#dddddd;a1a1a1*E2E8F1*/
    width:100%;
     border-radius:8px;
    -moz-border-radius:8px; /*Firefox 3.6 and earlier */
}



--Amit
 
Share this answer
 
Comments
Ranjith Reddy CSE 2-Jul-12 3:08am    
Thank you Sir, Now its Working According to your Code. MANY THANKS.
Ranjith Reddy CSE 2-Jul-12 3:09am    
But its now working in Internet Explorer.
Only its working fine in GOOGLE CHROME.

Please say how to do this with internet explorer.
Ranjith Reddy CSE 2-Jul-12 3:09am    
Sorry, Its not working in Internet Explorer.
_Amy 2-Jul-12 3:27am    
Yes.. It'll not work in IE. For that you need to use RoundedCornerExtender asp.net ajax. search in google. Anyway it'll work in IE9.
There is a work around trick to generate the rounded corner tables. Sample HTML code is available at http://www.sitepoint.com/trick-rounded-corner-tables/#.T_Ex19lYqjE[^]
 
Share this answer
 
You can use RoundedCorners of Ajax Control toolkit. quite easy to implement and compatible to all browsers
For using ajax you have to add reference of AjaxControllToolkit.dll.

Example:
ASP.NET
<div id="divround"  runat="server" style="width:500px">Your design here</div>

ASP.NET
<ajaxToolkit:RoundedCornersExtender ID="rce" runat="server"
    TargetControlID="divround"
    Radius="6"
    Corners="All" />




Make it answer if it suits to your requirement.
Thanks
 
Share this answer
 
v2
Comments
Ranjith Reddy CSE 2-Jul-12 1:39am    
how to add reference of AjaxControllToolkit.dll......am fresher please tell me. THANKS.
AshishChaudha 2-Jul-12 1:43am    
Which framework of asp.net are you using?? Please check following link for how to add reference

http://weblogs.asp.net/yousefjadallah/archive/2010/04/16/installing-ajax-control-toolkit-4-in-visual-studio-2010.aspx
Ranjith Reddy CSE 2-Jul-12 2:54am    
am using 3.5 version IDE VS 2008
AshishChaudha 2-Jul-12 3:03am    
Check out the link below:

http://ajaxcontroltoolkit.codeplex.com/releases/view/90063

check out and add reference following the previous link.

Thanks

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