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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:20:05+00:00 2026-06-06T12:20:05+00:00

Possible Duplicate: What characters are valid in CSS class names? Don’t if this is

  • 0

Possible Duplicate:
What characters are valid in CSS class names?

Don’t if this is suppose to be like this, but when I specify a class: .3plans, it does not apply the styling. But when I change the class name to .plans, it recognizes the style. Why is that? Note that the .3plans class is unique and there is no other style like that in my sheet, so it cannot be a duplicate. Is this phenomenon a common CSS practice? (not to use numbers in styles)

  • 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-06T12:20:06+00:00Added an answer on June 6, 2026 at 12:20 pm

    If class & ID is start from number then is not recognized by css. But you can write like this .plans3 instead of .3plans.

    As per W3c

    In CSS, identifiers (including element names, classes, and IDs in
    selectors) can contain only the characters [a-z0-9] and ISO 10646
    characters U+00A1 and higher, plus the hyphen (-) and the underscore
    (_); they cannot start with a digit, or a hyphen followed by a digit.
    Identifiers can also contain escaped characters and any ISO 10646
    character as a numeric code (see next item). For instance, the
    identifier “B&W?” may be written as “B\&W\?” or “B\26 W\3F”.

    Check this discussion for more Which characters are valid in CSS class names/selectors?

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

Sidebar

Related Questions

Possible Duplicate: Is this a good way to generate a string of random characters?
Possible Duplicate: Read/write .txt file with special characters Im reading a file but I
Possible Duplicate: What characters are allowed in C# class name? I'm using edmgen to
Possible Duplicate: How Random is System.Guid.NewGuid()? Based on this question I would like to
Possible Duplicate: Multiline strings in Javascript In Ruby you can do something like this:
Possible Duplicate: Php function to determine if a string consist of only alphanumerical characters?
Possible Duplicate: Maximum length of a std::basic_string<_CharT> string I would like to know how
Possible Duplicate: Is it valid to replace with // in a <script src=“…”>? Links
Is it possible to remove duplicate characters from a string without saving each character
Possible Duplicate: C/C++: Capture characters from standard input without waiting for enter to be

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.