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

  • SEARCH
  • Home
  • 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 7017407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:54:37+00:00 2026-05-27T22:54:37+00:00

In this JSFiddle , the last .tab class doesn’t get the correct border-radius effect

  • 0

In this JSFiddle, the last .tab class doesn’t get the correct border-radius effect (top right rounded corner).

I think I have my logic correct in saying :last-child selects the last .tab of .tabbed in this case.

What am I doing wrong?

CSS:

body {
    background: black;
    color: white;
    padding: 5px; }

.tabbed {
    height: 550px;
}

.tabbed .tab {
    padding: 6px 14px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0px;
    border-left-width: 0;
    float: left;
}

.tabbed .tab:first-child {
    border-radius: 3px 0 0 0;
    border-left-width: 1px;
}

.tabbed .tab:last-child {
    border-radius: 0 3px 0 0;
}

HTML:

<ul class='tabbed'>
    <li class='tab'>Menu 1</li>
    <li class='tab'>Menu 2</li>
    <li class='tab'>Menu 3</li>
    <li class='tab'>Menu 4</li>
    <li class='tab'>Menu 5</li>
    <li> <br/><br/> </li>
    <li class='dummy'>Content 1</li>
    <li class='dummy'>Content 2</li>
    <li class='dummy'>Content 3</li>
    <li class='dummy'>Content 4</li>
    <li class='dummy'>Content 5</li>
</ul>
  • 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-05-27T22:54:38+00:00Added an answer on May 27, 2026 at 10:54 pm

    In a comment, you state: “It needs to be on the same ul parent. Or another ul, below the last li on the first ul.” If that is so, then do this:

    <ul class='tabbed'>
        <li class='tab'>Menu 1</li>
        <li class='tab'>Menu 2</li>
        <li class='tab'>Menu 3</li>
        <li class='tab'>Menu 4</li>
        <li class='tab'>Menu 5</li>
        <li>
        <ul>
        <li class='dummy'>Content 1</li>
        <li class='dummy'>Content 2</li>
        <li class='dummy'>Content 3</li>
        <li class='dummy'>Content 4</li>
        <li class='dummy'>Content 5</li>
        </ul>
        </li>
    </ul>
    

    Then this css (with modern browsers):

    .tabbed {
    height: 550px; }
    
    .tabbed .tab {
    padding: 6px 14px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0px;
    border-left-width: 0;
    float: left; }
    
    .tabbed .tab:first-child {
    border-radius: 3px 0 0 0;
    border-left-width: 1px; }
    
    .tabbed .tab:nth-last-child(2) {
    border-radius: 0 3px 0 0; }
    
    .tabbed li:last-child {
       clear: left;
    }
    

    See this fiddle.

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

Sidebar

Related Questions

Check this code: http://jsfiddle.net/ZXN4S/1/ HTML: <div class=input> <input type=text size=50 id=test_input> <input type=submit value=send
I have been struggling for the last few hours trying to get this search
I have been witnessing this weird behavior since last night. Here's the fiddle: http://jsfiddle.net/Gqndm/
This is my first post here and I wanted to get some input from
This most be the second most simple rollover effect, still I don't find any
Please see this jsFiddle: https://jsfiddle.net/Wmq6f/ I have a textarea that has a background image,
I have this script: http://jsfiddle.net/NV2uV/ It works, but I do not like it. Cons:
All of this is code is here: http://jsfiddle.net/yrgK8/ I have a news section which
been playing with this for a few hours and can't figure it out. jsFiddle
Based in this example http://jsfiddle.net/Nb3uW/30/ how can make it to show each link the

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.