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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:17:48+00:00 2026-06-06T04:17:48+00:00

I have a div class named switch control which has a div class named

  • 0

I have a div class named switch control which has a div class named thumb as child

<div class="switch-control">
         <div class="thumb"></div>
</div>

and there are css for them called:

.switch-control > .thumb
.switch-control > .thumb::before

Both css classes are taking affect and used on chrome and firefox, but on IE8,9 the .switch-control > .thumb is active and the .switch-control > .thumb::before is marked out and not used thus I can’t see it taking affect on IE8,9

Why is that and how can I fix it ?
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-06T04:17:50+00:00Added an answer on June 6, 2026 at 4:17 am

    IE9 has a tendency to cross out styles for pseudo-elements for some weird reason, but it does support the CSS3 double-colon notation for all supported pseudo-elements (this includes CSS1 ::first-line and ::first-letter, and CSS2 ::before and ::after). If your styles aren’t working, something else is wrong (there are a number of SO questions to this effect but I have no clue what could be causing the problem).

    IE8 does not support the CSS3 double-colon notation for any pseudo-elements, only the single-colon notation that has always traditionally been in use.

    If you need to support IE8, you have to use the traditional single-colon notation (which every browser is expected to continue supporting for compatibility reasons):

    .switch-control > .thumb:before
    

    And regarding your comment:

    I have updated my css style sheet from .switch-control > .thumb::before to .switch-control > .thumb:before (from double colon to single colon) but all browsers (chrome and IE) still shows double colon. how come?

    As I mentioned, pseudo-elements are now supposed to be prefixed with double colons, with single colons maintained for compatibility. It’s simply the new notation that should be used starting from CSS3 selectors and going forward, so when a browser’s developer tools encounter a pseudo-element rather than a pseudo-class, it displays it with double colons if it understands CSS3.

    In other words, it’s just the browser UI showing it with double colons. It’s not altering the code in your stylesheet in any way.

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

Sidebar

Related Questions

I have a child element of a div named bob that's class is '.divTitle'
I have a div having a css class MyClass. Inside this div, I can
I have 8 divs. Each div has the class 'pre-loader'. In addition to thas
I have a div class I named .header with a height of 30px. Within
So if I have a CSS class named class-name, what does the following mean?
I have a div class named subproperties. In that div, I have many div
I have 3 tabs, created by js. Active tab has class named active and
I have a user control named LettersDropControl. It has a dropdown list. I am
I would like to add a class named group to all elements which have
I have many DIV with the same class name, let save wmplayer. I want

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.