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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:49:03+00:00 2026-06-14T08:49:03+00:00

This is the full line of code I’m looking at, and here is its

  • 0

This is the full line of code I’m looking at, and here is its context: http://acidmartin.wordpress.com/2011/02/24/custom-crossbrowser-styling-for-checkboxes-and-radio-buttons

input[type="radio"] + span::before { content: ""; display: inline-block; width: 20px; height: 20px; background: url("sprite.png") no-repeat -20px 0; vertical-align: middle; }

I have a decent understanding of how this works, but I don’t understand why there are two colons, rather than one between span and before.

The before selector, from what I’ve read should use one colon.

http://www.w3schools.com/cssref/sel_before.asp

On w3c, I can’t find any selectors that have two colons, nor can I figure out why span would have a colon following it, in addition to the colon preceding “before”.

http://www.w3.org/TR/CSS2/selector.html

  • 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-14T08:49:04+00:00Added an answer on June 14, 2026 at 8:49 am

    It’s a pseudo-element, as defined by the CSS Selectors Level 3 spec:

    The ::before and ::after pseudo-elements can be used to describe generated content before or after an element’s content.

    It is effectively the same as the single-colon syntax defined by the level 2 spec. The level 3 spec introduces an extra colon to differentiate between pseudo-elements and pseudo-classes (which use a single colon).

    Both syntaxes will work in newer browsers, but older browsers will not recognise the newer :: style.


    For even more detail, you can look at the grammar from the level 3 spec, which states:

    ‘::’ starts a pseudo-element, ‘:’ a pseudo-class

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

Sidebar

Related Questions

So I have this line of code inside a WordPress plugin. The code file
The issue I'm noticing is this line of code: tempList.Add(orderables); In this full code:
I have this line of CSS code here... background-image:url(upload/<?php echo $array['image']; ?>); but the
At end of this code ( full code is here ) function addSongs() {
THIS IS THE FULL SCRIPT http://goo.gl/HoCxk I have a problem with this function: $('.message').click(function(){
Full disclosure: this is for an assignment, so please don't post actual code solutions!
I have this small line of code in Yii Framework: array('username', 'unique', 'attributeName'=> 'username',
I could use some help converting this C# line of code to VB. I
I have this code to paint with my finger on ipad in bitmap context.
At the following first line of code I get this error: cannot convert ‘std::string’

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.