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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:32:50+00:00 2026-05-13T18:32:50+00:00

IF there is a div say <div class=ref><contents goes here</div> How to specify in

  • 0

IF there is a div say

 <div class="ref"><contents goes here</div>
  1. How to specify in the css as body of the div .Meaning

     <style>
     .ref body  {
        /* ref body contents goes here*/
      }
     </style>
    

    Can anything like the above be done?

  2. If any one can explain the below also

     <style>
      .a  > .bb
      {
      }
     </style>
    

What does the above mean?

Thanks..

  • 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-13T18:32:50+00:00Added an answer on May 13, 2026 at 6:32 pm

    For the first one, it’s not totally clear what you mean. Just using .ref { /* CSS here */ } will target that div element. If you mean adding content via CSS, it’s only possible using the :before and :after pseudo slectors:

    .ref:after {
      content: "Some text";
    }
    

    Note: you can’t put HTML in there, only text.


    For the second one, it looks for all elements with a class of bb that are direct children of class a. For example, it will match the p in this code

    <div class="a">
      <div>something</div>
      <p class="bb">class bb</p>
    </div>
    

    But it won’t match this:

    <div class="a">
      <div>
          <p class="bb">class bb</p>
      </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have several inline-block div tags, like this <div class=image> </div> <div class=image>
Sometimes after a <div> class the next line comes on the same line and
is it possible to reset to original state after changing class and applying the
class ClientForm(forms.ModelForm): client_number = forms.IntegerField() name = forms.CharField(max_length=80) address = forms.CharField(max_length=250) telephone = forms.CharField(max_length=20)
I have a feeling that this is a subjective question, but perhaps there's something
This is how I'd like to write markup in say index.html.erb <%= page_for Super
Here is an analogy of my problem(a selector which has this selector together with
I searched the web but haven't found a real good answer for this question..
I have a somewhat grouping system which all the elements between two divs are
I am using jquery selectable plugin and running it to a situation as follows.

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.