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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:55:51+00:00 2026-05-23T22:55:51+00:00

I am jsut wondering why the CssClass=blah is not avaliable inside my div tags

  • 0

I am jsut wondering why the CssClass=”blah” is not avaliable inside my div tags when style=”blah” works.

Is this not part of CSS? Is there a way to set this up? Can I give…

<div class="foo">

</div>

and set the inline css to…

#div foo{blah}

or something like that?

Thanks 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-05-23T22:55:54+00:00Added an answer on May 23, 2026 at 10:55 pm

    You add the class to you div correctly:

    <div class="foo">
    
    </div>
    

    But in your CSS, you are using the id identifier (#) instead of the class identifier (.):

    /* This would match any <foo> element with a parent that has an id of div
       for example <span id="div"><foo>...</foo></span> */
    #div foo{blah}
    
    /* This matches <div class="foo"> */
    div.foo { blah }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a bit of a crazy question, but does anyone out there know
I've written a helper in order to make my main nav. Part of this
I have a custom WinForms control (inherits from control, i.e. without user interface jsut
I have a report that shows client names jsut in a list like so:
I have a file upload script that works [finally] but want to have users
For loading time considerations I am using a runtime css file in my Flex
The code is : $(#radioGroup).click(function() { $(#groupSpan).css(display, block); $(#advisorSpan).css(display, none); }); and for second
i know this should be simpel and im probably staring straight at the problem
run the following, and its supposed to return the company name. The xpath works
I have this problem. I need to have a method repeated endlessly, if possible,

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.