Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7979405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:46:12+00:00 2026-06-04T09:46:12+00:00

How do i create rounded top left and bottom left corners of the first

  • 0

How do i create rounded top left and bottom left corners of the first LI and rounded top right and bottom right of the last li using jquery?

I understand that i could use border-radius but that wont be a cross browser solution.

Here is what i have started: http://jsfiddle.net/c7NyZ/1/

If you can add a resource to the jsfiddle and update it id be greatful.

HTML:

<div id="new-menu-upper">
<ul id="top-nav">
<li><a href="/t-topnavlink.aspx">menu item 1</a></li>
<li><a href="/t-topnavlink.aspx">menu item 2</a></li>
<li><a href="/t-topnavlink.aspx">menu item 3</a></li>
<li><a href="/t-topnavlink.aspx">menu item 4</a></li>
<li><a href="/t-topnavlink.aspx">menu item 5</a></li>
<li><a href="/t-topnavlink.aspx">menu item 6</a></li>
</ul>
</div>

CSS:

div#new-menu-upper {
    border: 0 solid red;
    height: 40px;
    margin: 0 5px 10px;
    padding-top: 63px;
}
ul#top-nav li {
    background-image: url("http://i47.tinypic.com/21nqxjc.png");
    background-repeat: repeat;
    border-right: 2px solid lightgrey;
    float: left;
    height: 41px;
    width: 156px;
}
ul#top-nav li a {
    color: White;
    display: inline-block;
    font-family: Arial;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    padding-left: 38px;
    padding-top: 12px;
    text-transform: uppercase;
}

EDIT: IT HAS TO BE A CROSS BROWSER SOLUTION, MEANING IT HAS TO WORK WITH MIN IE7
*EDIT: ADDED JQUERY.CORNERS RESOURCE TO JSFIDDLE AND TRIED TO MAKE FIRST LI RENDER WITH CORNER BUT ITS NOT WORKING – PLEASE CAN YOU HELP * – http://jsfiddle.net/c7NyZ/4/

SOLUTION: http://jsfiddle.net/c7NyZ/6/ (I DIDNT APPLY THE JS LIBRARY!)

EDIT: The first Li seems to merge with the 2nd li, can you fix this?? – http://jsfiddle.net/c7NyZ/7/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:46:13+00:00Added an answer on June 4, 2026 at 9:46 am

    Simple, Just use first-child and last-child pseudo elements

      ul#top-nav li:first-child{
        border-radius : 10px 0px 0px 10px;
      }
      ul#top-nav li:last-child{
        border-radius : 0px 10px 10px 0px;
      }
    

    JSBIN

    If you are up for using css3 pie, then

     ul#top-nav li{behavior: url(PIE.htc);}  
     ul#top-nav li:first-child{
            border-radius : 10px 0px 0px 10px;
     }
     ul#top-nav li:last-child{
          border-radius : 0px 10px 10px 0px;
     }
    

    Otherwise, if you want to incorporate curves in IE 6,7,8 The you must either use well-placed images or vector graphics libraries.

    Checkout css3pie – its neat!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a flat button with rounded right top and bottom corners.
I want to create custom button with rounded bottom right and top right corners.
I need to create a div with rounded corners containing an image that can
How can I create rounded corners using CSS?
To create rounded corners on my container elements I use this CSS: border-radius:12px; -moz-border-radius:
I was using jQuery plugins to create a rounded corner for my <li> ,
I am trying to create a rounded header that could possible be multiple lines.
I'm trying to create a Win32 window that has rounded corners and is resizable
Is it possible to create rounded corner that viewable on opera mini (version 4)
Does anyone know good example of using CSS to create rounded corner box where:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.