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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:39:57+00:00 2026-06-16T00:39:57+00:00

I have a CSS like below to create a certain background colour when hovering

  • 0

I have a CSS like below to create a certain background colour when hovering over the table.

.cb_table-hover tbody tr:hover td ,
.cb_table-hover tbody tr:hover th {
  background-color: #cfe2e8;  
}

Within a <td> I have a <div>, which I would like to exclude from this hover colour madness.

<td>
 <div class="override_td">
    {% include '_test_edit.html' %}
 </div>
</td>

So I came up with an negation for the initial hover css.

.cb_table-hover tbody tr:hover td:not(.override_td) ,
.cb_table-hover tbody tr:hover th:not(.override_td) {
  background-color: #cfe2e8;  
}

But it seems I failed already miserably because my Aptana Studio shouts that

The negation pseudo-class, :not(X), is a functional notation taking
a simple selector (excluding the negation pseudo-class itself) as an
argument. It represents an element that is not represented by its
argument. Negations may not be nested; :not(:not(...)) is invalid.
Note also that since pseudo-elements are not simple selectors, they
are not a valid argument to :not().

Example The following selector matches all button elements in an HTML
document that are not disabled. button:not([DISABLED]) The following
selector represents all but FOO elements. *:not(FOO) The following
group of selectors represents all HTML elements except links.
html|*:not(:link):not(:visited)

So I am confused why it doesn’t like my selector?

  • 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-16T00:39:58+00:00Added an answer on June 16, 2026 at 12:39 am

    Your selector looks well-formed (and follows the rules laid out in the Aptana warning message), and it works correctly, according to this fiddle. You haven’t mentioned an actual failure (only a complaint from Aptana), so I assume it will work just fine.

    The reason for Aptana’s complaint could be that it doesn’t scan for invalid :not very closely. It’s possible that simply because your selector string contains two :not pseudoclasses, Aptana assumes they are invalid, even though they are separated by a comma.

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

Sidebar

Related Questions

I have a page like below; <style type=text/css> #div1 { height: 100px; background-color: #CCCCCC;
I have a piece of CSS like so: .formTable:nth-child(odd) { background-color: #eeb; } I
I have a page like below; <style type=text/css> #test a{ display: block; width: 150px;
I have a CSS entry that looks like this: .header { background-image: url(./images/embouchure.jpg); background-repeat:
For example I have a css style like this : input.validation-passed {border: 1px solid
I have applied CSS style to JavaFX components and it looks like everything is
Let's suppose I have a css class named foo. I would like to have
I have been looking at a couple html/css form frameworks like Uni-Form and Formy
I have HTML + CSS text. I need some lib with simple function like
A lot of these pages are like mini applications that have their own CSS

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.