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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:44:13+00:00 2026-06-13T11:44:13+00:00

So, I thought I knew my basic CSS, but my brain is twisting right

  • 0

So, I thought I knew my basic CSS, but my brain is twisting right now. I want to implement the 960 grid system to my website, but before I do, I want to fully understand the principle of the code.

I’ve got two questions. Firstly, the css regulating the width of the columns. We have the parent class “.container” to the left, and two classes to the right, where the “column” class is a descendant selector of the “one” respectively “two” classes. Is this saying that the class “column” is 40px wide if it is contained within “one” AND “container”? Simply put: I don’t really understand the relationship between these three elements.

.container .one.column          { width: 40px;  }
.container .two.columns         { width: 100px; }

Second question: When calling the classes in the HTML code, it seems that is done with the code

<div class=one column>Content</div>

right? But there is no class labeled “one column”, only the descendant selector “column” to “one”. What I am not getting here? Thanks a lot in advance.

  • 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-13T11:44:14+00:00Added an answer on June 13, 2026 at 11:44 am

    In HTML, you can apply multiple classes to a single element. However the above syntax is incorrect; the value has to be encased in quotes:

    <div class="one column">Content</div>
    

    Without the quotes you end up with two attributes: class=one and column, which is different (and invalid HTML).

    HTML doesn’t have a notion of selectors, so the space between them is not a descendant selector, nor is the attribute value itself a selector. Instead, the space is merely a separator used to distinguish them as two separate classes.

    Consequently, to answer both questions, the selector .one.column applies to an element that has both of these classes.

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

Sidebar

Related Questions

I thought I knew this already but now I'm not sure: Is all content
I thought I was pretty well acquainted with Subversion, but now something I thought
I have a problem that I thought I knew how I can fix, but
Sorry to ask this as I thought I knew the answer, I want to
I thought I knew everything about encodings and Python, but today I came across
I thought I knew where to start with this but sadly I it's been
So.. I thought I knew mssql fairly well but this one query asked of
I thought I knew how JavaScript's this keyword worked, but I've been caught by
I thought I knew how to deal with memory leaks and arrays, but then
I thought that I knew how to use fast enumeration, but there is something

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.