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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:34:21+00:00 2026-05-30T07:34:21+00:00

I am developing a css for printing in IE8 , since i don’t have

  • 0

I am developing a css for printing in IE8, since i don’t have advanced css selectors( http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/ ) i concatenate them like this

I need to modifiy certain columns in a table(e.g. make 8th column red, 9th longer, 10 shorter… ecc)

The question is if i use

td+td+td{ /*instead of td:nth-child(3) on modern browsers*/
 set something...
}

all the td from the 3rd one to the last one have that “set something”

so to fix it i have to do

td+td+td+td{
 unset something
}

So i fixed it, but wondering why it acts like this?

  • 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-30T07:34:23+00:00Added an answer on May 30, 2026 at 7:34 am

    + denotes adjacent selectors.

    td+td { } Generally means, if a td is preceded by another td then apply certain rule

    One more example:

    a + p {} Generally means, if p comes after a then apply certain rule.

    So the style sheet you are using

    td+td+td will apply the style to every td after the third elements. This might be a little complicated to be clear about. Lets see an example with sets of <td>

    <td>1</td>
    <td>2</td>
    <td>3</td>
    <td>4</td>
    

    Your rule

    td + td + td {
        /* apply something */
    }
    

    The above rule will apply to two different sets

    1. First one, adjacent sibling from <td>1</td> to <td>3</td> matches td+td+td

    2. Second one, adjacent sibling from <td>2</td> to <td>4</td> also matches td+td+td

    So at the end, all the selectors from <td>3</td> end up getting the style

    To cancel this effect, you reset the rule adding fourth selector on the style sheet.
    i.e

    td + td+ td + td {
      /* cancel the effect
      This will catch <td>-4</td> and apply the reset rule */
    }
    

    Hope that explains it.


    Further Reading

    1. W3 Org
    2. Good Explanation with examples
    3. One more to fully clarify
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a 'home-made' tooltip using Jquery and CSS, Seems to work OK, http://jsfiddle.net/GLZFc/
I have started developing facebook fanpages using HTML and CSS . The size of
Hi I am developing a simple application based upon ASP.NET MVC. I have altered
We have a large ASP.Net website that has a single css stylesheet which is
I'm using the Blueprint CSS framework for a website. Some pages I'm developing have
I am developing this site, it got my CSS file, and also have references
I am developing a website in XHTML 1.1/CSS 3.0 and I have a problem
I've never dealt with CSS but now I have to. I'm developing some HTML
I have experience developing web applications using Java, HTML, JS, and CSS. At this
When developing a web application using ASP.NET, do you have any hints about how

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.