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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:18:14+00:00 2026-06-18T17:18:14+00:00

I am editing the CSS of a static framework for an e-commerce store. I

  • 0

I am editing the CSS of a static framework for an e-commerce store. I can’t edit a lot of it but I’ve been using nth-child to target certain elements in the CSS. The problem is that a lot of the dynamically generated divs, tables and spans don’t have class or ID selectors. The framework is built on tables so there’s a lot of CSS selectors like this:

.sample_CSS_class table:nth-child(5) table

This is where a table that’s contained within the fifth table under the div with the class “sample_CSS_class” is targeted. This can take a lot of time though. I have to go into the Google Chrome Inspector (or Firebug) and expand the source code and then count down from there. With so much code, I can make mistakes and it also just takes a while.

I was wondering if anyone knows an efficient way to find out the nth-child number of an element with something like Firebug or Google Chrome Inspector (or any other tool that’s out there). Thanks!

  • 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-18T17:18:15+00:00Added an answer on June 18, 2026 at 5:18 pm

    With Chrome, you can use the Copy XPath context menu entry to sort of do it:

    XPath stuff

    It’ll give you an XPath selector that looks like this:

    //*[@id="sidebar"]/div[4]/div/div[13]
    

    div[13] is like div:nth-child(13). It’d be really nice if Chrome had a Copy CSS option, but for some reason it doesn’t. Maybe someone will make an extension.

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

Sidebar

Related Questions

I've been editing CSS using Firebug in Firefox, but recently noticed that Chrome is
I am using VS 2005 and while editing a css border property, Visual Studio
Like live editing of XHTML and CSS in firebug can we do live testing
How can I add some horizontal padding space without editing my css file? I
The Question Which JavaScript framework (prototype, script.aculo.us, Mootools, MochiKit...) has decent CSS rule editing
I am looking for a tool to help with some CSS editing, but I
Here's my situation: I am editing an application's CSS style sheet. I can ONLY
HTML CSS of child theme CSS of parent theme can be found in the
I'm editing a CSS style sheet in Eclipse and I constantly have to copy
When editing an Sweave document in LaTeX (using the Noweb mode), Emacs knows to

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.