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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:42:08+00:00 2026-06-13T03:42:08+00:00

I had a class like this .lifetime .containerrow { text-align: center; height: 20px; }

  • 0

I had a class like this

.lifetime .containerrow
{
    text-align: center;
    height: 20px;
}

I needed to make the text in some of the elements bold so I did this:

.lifetime .containerrow .info
{
    font-weight:bold;
}

this didn’t work but this did:

.lifetime.containerrow.info
{
    font-weight:bold;
}

Why?
Isn’t is the same thing?
Thanks
Don’t know css that well

  • 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-13T03:42:09+00:00Added an answer on June 13, 2026 at 3:42 am

    That’s correct behaviour. .class1.class2.class3 matches elements that have all three classes. .class1 .class2 .class3 matches an element of .class3 inside an element of .class2 inside an element of .class1.

    If you want to apply the same style to three separate classes, you need to separate them with commas (e.g. .class1, .class2, .class3 { font-weight: bold; })

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

Sidebar

Related Questions

Say I had a User class like this: public class User { public bool
If I had a non-anonymous class like this, I know I can use DisplayNameAttribute
By default Html.ValidationSummary() produces HTML like this: <span class=validation-summary-errors>There were some errors...</span> <ul class=validation-summary-errors>
Let's say I had a class like this: class Parser attr_accessor :config, :html def
Until now, I had a class like this one: type C<'a when 'a :>
This is the situation. I had async call so I needed to make Mid
I had a class like this public class Child { public string ToXml() {
If I had a class in Java like this: public class Test { //
I had a function like this, that wasn't within a class: // Gets the
If i had a class like this: class foo(object): def __init__(self, x, y, z):

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.