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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:59:09+00:00 2026-06-04T18:59:09+00:00

Searching for the ~ character isn’t easy. I was looking over some CSS and

  • 0

Searching for the ~ character isn’t easy. I was looking over some CSS and found this

.check:checked ~ .content {
}

What does it mean?

  • 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-04T18:59:10+00:00Added an answer on June 4, 2026 at 6:59 pm

    The ~ selector is in fact the subsequent-sibling combinator (previously called general sibling combinator until 2017):

    The subsequent-sibling combinator is made of the "tilde" (U+007E, ~)
    character that separates two sequences of simple selectors. The
    elements represented by the two sequences share the same parent in the
    document tree and the element represented by the first sequence
    precedes (not necessarily immediately) the element represented by the
    second one.

    Consider the following example:

    .a ~ .b {
      background-color: powderblue;
    }
    <ol>
      <li class="b">b</li>
      <li class="a">a</li>
      <li class="x">x</li>
      <li class="b">b</li>
      <li class="b">b</li>
    </ol>

    .a ~ .b matches the 4th and 5th list item because they:

    • Are .b elements
    • Are siblings of .a
    • Appear after .a in HTML source order.

    Likewise, .check:checked ~ .content matches all .content elements that are siblings of .check:checked and appear after it.

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

Sidebar

Related Questions

i am searching in a while loop for a particular character to check whether
Searching here I found that this question was already asked , but I think
Just doing some research on searching for a character or word within a NSString
I've done a bit of searching on this. Found plenty of scripts that counted
I've been searching for some good guidance on this since the concept was introduced
When searching for everything about getchar() function in this really great site, I found
In php, stripos() performs case sensitive searching of a character and returns its position.
Searching online, I have found the following routine for calculating the sign of a
another brain teaser. This isn't the usual but Apostrophes are breaking my Queries as
I am searching a character at first occurence in string using the following code.

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.