rounded corner tabs using linkbuttons

Last post 05-12-2008 9:28 AM by RobHellest. 4 replies.

Sort Posts:

  • rounded corner tabs using linkbuttons

    05-06-2008, 8:15 AM
    • Loading...
    • joynee
    • Joined on 02-14-2008, 3:26 PM
    • Posts 116

    i designed tabs using lists  with out using images.the tab corners are rectangle in shape.i have to make them rounded.plz can anyone help on this.i have my css and aspx code here.

    #main{border:1px solid #000070; background: #FFFFFF; padding-top:1em; }

    #header{position: relative; width:100%; height:3em;width:45em;}

    #primary{margin:0;padding:0;position:absolute; bottom:-1px;width: 45em;}

    #primary li{display:inline;list-style:none;}

    #primary a{width:7em; float:left;padding:4px 0px; border: 1px solid #000070; border-bottom:none; margin:1px 4px 0px 0px;

    text-align:center;font-family:Palatino Linotype ,Times New Roman, Arial ;font-size:10pt; text-decoration:none; color:#000070;}

    /*------------aspx--------------*/ 

    <div id="header" style="z-index: 102">

    <ul id="primary">

    <li>

    <asp:LinkButton ID="week1" runat="server" Text="WEEK1" OnClick="update_week"></asp:LinkButton></li>

    <li>

    <asp:LinkButton ID="week2" runat="server" Text="WEEK2" OnClick="update_week"></asp:LinkButton></li>

    <li>

    <asp:LinkButton ID="week3" runat="server" Text="WEEK3" OnClick="update_week"></asp:LinkButton></li>

    <li>

    <asp:LinkButton ID="week4" runat="server" Text="WEEK4" OnClick="update_week"></asp:LinkButton></li>

    <li>

    <asp:LinkButton ID="week5" runat="server" Text="WEEK5" OnClick="update_week"></asp:LinkButton></li>

    <li>

    <asp:LinkButton ID="week6" runat="server" Text="WEEK6" OnClick="update_week"></asp:LinkButton></li>

    </ul>

    </div>

    <div id="main">

    -----------

    </div>

  • Re: rounded corner tabs using linkbuttons

    05-06-2008, 9:06 AM
    • Loading...
    • smssms
    • Joined on 04-10-2007, 8:33 AM
    • Posts 18

    Need to add some background rounded corner images to  the css clas  for rounded corners.

  • Re: rounded corner tabs using linkbuttons

    05-09-2008, 5:06 AM
    • Loading...
    • blodfox777
    • Joined on 07-12-2007, 12:30 PM
    • Posts 64

    Hi joynee

    there is a way to make your div to display rounded corner effect, I hope this helps

    <script type="text/javascript"> 
    
    window.onload = function() 
    { 
        settings = { 
          tl: { radius: 20 }, 
          tr: { radius: 20 }, 
          bl: { radius: 20 }, 
          br: { radius: 20 }, 
          antiAlias: true, 
          autoPad: false 
        } 
    
        var divObj = document.getElementById("myDiv"); //your DIV which want to be rounded corner
    
        var cornersObj = new curvyCorners(settings, divObj); 
        cornersObj.applyCornersToAll(); 
    }
    
    </script> 
    
     
    Regards!
    Lance
    -- "Mark As Answer" If my reply helped you --
  • Re: rounded corner tabs using linkbuttons

    05-09-2008, 9:21 AM
    • Loading...
    • joynee
    • Joined on 02-14-2008, 3:26 PM
    • Posts 116

    thanks for giving reply. but the code which you gave works for entire header (div).but i need rounded corner for each button in my tab.i mean i used linkbuttons with lists in <ul>.now i have a tab look with buttons.but they have to be rounded corner buttons to make them look like a tab container tabs.

  • Re: rounded corner tabs using linkbuttons

    05-12-2008, 9:28 AM
    Answer
    • Loading...
    • RobHellest
    • Joined on 04-25-2005, 2:43 PM
    • Miami, Florida
    • Posts 29

    Joynee,

    I suggest using the RoundedCornerExtender, from the Ajax Control Toolkit.

    Best of luck!

     

Page 1 of 1 (5 items)