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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:40:02+00:00 2026-06-02T20:40:02+00:00

with css :nth-child pseudo-selector. how do i select every 7n item including the first

  • 0

with css :nth-child pseudo-selector. how do i select every 7n item including the first one (that is item at 0 index).

For example:

  • 1.highlight me
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7.highlight me
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14.highlight me

i tried :nth-child(7n) but it doesn’t match the first item.

  • 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-02T20:40:03+00:00Added an answer on June 2, 2026 at 8:40 pm

    Use:

    :nth-child(6n+1) { ... }
    

    Working Example

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

Sidebar

Related Questions

I am looking for a CSS selector that lets me select the penultimate child
First off, this example will only work in a browser that supports :nth-child ,
I’m trying to get the CSS pseudo :nth-child(n) function to work in Internet Explorer
I'm styling a table using CSS and I realised that IE8 doesn't support :nth-child
i'm trying to select the <a> within the <span> that's the nth child of
I'm trying to use the pseudo class ( img:nth-child) in this project but I
I have the following JavaScript function function headerBanner(){ var current = $('.bannerImages img:nth-child('+bannerIndex+')').css('display', 'none');
Is there a way to only affect visible elements with this css? table.grid tr.alt:nth-child(odd)
I have the following code: css: nav div:nth-child(1) { background: red; } nav div:nth-child(2)
Here is my CSS: #nav-primary ul li:nth-child(1) a:after { } Works everywhere now (used

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.