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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:30:29+00:00 2026-06-04T00:30:29+00:00

As usual, I’ve Googled this and read through the documentation ( W3C’s CSS Selectors

  • 0

As usual, I’ve Googled this and read through the documentation (W3C’s CSS Selectors documentation), but still have been unable to find an answer.

It’s very difficult and almost definitely counter-productive to explain why I’ve set my stylesheets up this way, so I’ll just show you a section of one of my CSS stylesheets and ask what I came here to ask.

I know that .className, for example, is a global class – it is applied to every element that uses it on all pages that the stylesheet is linked to – and that #sectionID .className, for example, is a local class – it is only applied to the elements that uses it inside of the element with the ID of sectionID.

So, is there is a way to somehow set a temporary / relative root for a style sheet, so that the following extract:

#sectionID1 .className1, #sectionID1 .className2, #sectionID1 .className3, #sectionID1 a, #sectionID1 a:link, #sectionID1 a:visited, #sectionID1 a:hover, #sectionID1 a:active, #elementID2 input {
    color: #0084B4;
}

can become something like this:

#sectionID1 .className1, .className2, .className3, a:link, a:visited, a:hover, a:active, #elementID2 input {
    color: #0084B4;
}

Thanks 🙂

(Sorry for my bad explaining and, almost definite, incorrect use of terminology :L)

  • 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-04T00:30:30+00:00Added an answer on June 4, 2026 at 12:30 am

    No but you can use something like LESS, to achieve such dynamics

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

Sidebar

Related Questions

As usual, I have Googled this a fair bit and read up on the
The usual way to read a file in C++ is this one: std::ifstream file(file.txt,
usual but I need to have different custom radio button images per button. So
This is for the usual PHP/SQL/html/CSS type of webdev. Site might be visited by
This is the usual thing: you have a list of items with several attributes.
The usual way to assign color box functionality on a link is like this:
As usual, when a tableviewcell is touched, it will be selected. But now i
I have a usual login form consisting of two input fields, one for login,
The usual definition for a specialization of a template function is something like this:
Currently I have the usual Controller/Action structure: BlogController: /blog/list /blog/create /blog/detail/my-blog-hash And PostController /post/create

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.