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

  • Home
  • SEARCH
  • 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
  • 4 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

In my webpage, there's a div with a class named Test . How can
say I have a css class name div.TestClass { float:left;etc// } span.SpanTestClass { float:right;etc//
Let say I got this page: <body> <h1>Hello!</h1> <div class=wrapper> <div class=anotherclass> <h1>Another heading
Lets say there is .myButtonClass{ /*#style;*/ } Now i have new <div id=myid> One
Let's say I have this HTML: <textarea>blah</textarea> <br> <div class=select_this>hello!</div> How can I select
Here is my site: http://smartpeopletalkfast.co.uk/pos/ There is a div #nav which has a fixed
Say I have 4 div elements with class .navlink , which, when clicked, use
Say I have the following css: .cls {} .cls ul {list-style-type:none;} .cls ul li
Say I have several inline-block div tags, like this <div class=image> </div> <div class=image>
I have some div`s with same class say: <div id=1 class=same>..</div> <div id=2 class=same>..</div>

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.