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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:08:03+00:00 2026-05-26T13:08:03+00:00

I have a question… I want to create a class called thumb w/ all

  • 0

I have a question… I want to create a class called thumb w/ all the necessary information for each item and the hover. Then I want them to have their own specific behavior when within a parent node. here’s what I have so far and it’s not working.

.thumb
{
    display:block;
    float:left;
    width:10px;
    height:10px;
    margin:5px 10px 5px 10px;
}

.thumb:hover
{
    border:solid 1px #F00;
}


#commercial
{
    margin:0 auto;
    width:100px
}

#commercial.thumb
{
    background-color:#0A0;
}

#wedding
{
    margin:0 auto;
    width:100px
}

#wedding.thumb
{
    background-color:#00F;
}

#fashion
{
    margin:0 auto;
    width:100px
}
#fashion.thumb
{
    background-color:#F0F;
}

i’ve also tried declaring the thumbs within the id’s as

#id > a.thumb

and

#id > .thumb

nothing seems to work. I figured this would be a more efficient setup as it would allow me to change every thumb regardless of parent div w/ just one block of code instead of 3, any insight is greatly appreciated.

thanks,
Brodie

  • 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-26T13:08:03+00:00Added an answer on May 26, 2026 at 1:08 pm

    saying #fashion.thumb means you want to match an element like:

    <div id="fashion" class="thumb">
    

    Splitting it up into #fashion .thumb (note the space) is “any element with class ‘thumb’ that is a descent of the element with id fashion, which’d be:

    <div id="fashion">
       <span class="thumb"></span>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question. I create socket , connect , send bytes , all is
I have question regarding the SQLAlchemy. How can I add into my mapped class
I have a Question class: class Question { public int QuestionNumber { get; set;
I have question to Java or C# programmers. I want to render some pages
I have question about database optimizing, indexing. I have table that called projects and
I have a question regarding inheritance in Java. If I have this base class
i have public class ExperimentAllInOneActivity extends Activity implements OnClickListener on each button click listener
I have question about pointers in C. Each pointer has 4 bytes in memory
I have question for you ... I have UITableView and I want to catch
I have question on controlling the amount of concurrent threads I want running. Let

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.