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 9135025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:46:16+00:00 2026-06-17T08:46:16+00:00

This selector doesn’t work. Is it really possible? See this http://jsfiddle.net/Hd7VZ/ .x-form-fieldset:last-child:not(x-item-hidden) { border-bottom:

  • 0

This selector doesn’t work. Is it really possible?

See this http://jsfiddle.net/Hd7VZ/

.x-form-fieldset:last-child:not(x-item-hidden) {
    border-bottom: 0;
}

One of solution is this http://jsfiddle.net/8Fpyu/

  • 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-17T08:46:17+00:00Added an answer on June 17, 2026 at 8:46 am

    The comment by antejan is correct, currently you’re selecting the .x-form-fieldset which is :last-child in its block. If you want to select the :last-child within .x-form-fieldset then this is the correct syntax:

    .x-form-fieldset :last-child {
        border-bottom: 0;
    }
    

    However even if the last item is hidden it is still :last-child, so adding the :not will achieve nothing in your example.

    There is nothing in CSS at present which allows you to ignore non-visible elements, as you can see from this small modification of your example simple effects like alternate striping are also broken by hiding elements. This may be a worthwhile addition to a future version of CSS, you could try suggesting it to the W3C CSS Working Group and seeing if they think it’d be worth adding to a future version of the selectors spec (CSS Selectors Level 4 is going through the standards process right now, but ideas are being accepted for CSS5 Selectors).

    In the meantime, you’re stuck with either finding an alternative markup approach, or hacking it in JavaScript.

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

Sidebar

Related Questions

How can I combine this two selectors: $(td.listas select:last option:selected) This doesn't work! What
Quick and silly jQuery selector question. Why this does not work : jsFiddle demo
[actionMap setObject:@selector(actionNavPop) forKey:@navPop]; This doesn't work. NSDictionary can only hold objects, and a SEL
Possible Duplicate: NSTimer doesn't stop I have this code: [NSTimer scheduledTimerWithTimeInterval:110.0 target:self selector:@selector(targetMethod:) userInfo:nil
Possible Duplicate: $(this) doesn't work in a function I'm writing post removing code in
I see this selector $( 'a + .firstSection a' ).live( 'click', function(){ in my
I have this Selector defined: <selector xmlns:android=http://schemas.android.com/apk/res/android> <!-- PRESSED --> <item android:state_pressed=true android:drawable=@drawable/backarrow_blueshiny />
I see a selector like this, .class1 .class2 .class3 { } What does this
Hi I have shared the code here : http://jsfiddle.net/jTAZ4/ Why am i getting the
I tried to use this jQuery selector: $(a:has(href*=#)).click(function() { alert('works'); }); but it doesn't

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.