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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:07:44+00:00 2026-06-14T12:07:44+00:00

I have just started learning CSS and have come across an example that I

  • 0

I have just started learning CSS and have come across an example that I do not fully understand. I cannot describe it well which has made finding an answer difficult (I therefore apologise if an answer already exists that I have overlooked).

My question is regarding the following example:

.theme-light.slider-wrapper {
  background: #fff;
  padding: 10px;
}

I understand that classes in CSS are defined using the .name syntax which can then be used in tags like so:

<div class="name"></div>

I do not understand how the “double” declaration of .name1 .name2 works and how this would be used in a tag.

On a related note the example website that I was given uses an ID in a tag that does not exist in the stylesheet.. where else could this have been defined?

  • 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-14T12:07:45+00:00Added an answer on June 14, 2026 at 12:07 pm

    Maybe this use example will clear things up for you.

    Imagine the following scenario.

    You would have:

    <div class="general-div">some stuff</div>
    <div class="general-div special">some stuff</div>
    <div class="general-div">some stuff</div>
    <div class="extra-div">some stuff</div>
    <div class="extra-div special">some stuff</div>
    

    And lets say you want div’s to have the same attributes as follows:

    .general-div {width: 300px; height: 300px; border: 1px solid #000;}
    
    .extra-div {width: 200px; height: 200px; border: 1px solid #666;}
    

    But you want the .general-div with .special class to have red background, and extra-div with .special class to have a blue background.

    You would write:

    .general-div.special {background-color: red;}
    
    .extra-div.special {background-color: blue;}
    

    Hope it clears up the use of situation in question.

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

Sidebar

Related Questions

I have just started learning XNA. This is my first program that I am
I have just started learning python and am getting caught up. I come from
I have just started learning python version 3 and trying to create a file
I have just started learning Rails, is it required for me to learn CoffeeScript
I have just started learning Jquery and am new to writing javascript (I am
I have just started learning MVVM and having a dilemna. If I have a
I have just started learning NHibernate. Over the past few months I have been
I have just started learning Linux and Emacs. It was pleasant to have the
Hi I have just started learning WCF and I have encountered an error I
I just started using/learning Python and have some questions. I have a text file

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.