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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:41:21+00:00 2026-06-13T18:41:21+00:00

When I want to apply same attr to different class/tag I make it like

  • 0

When I want to apply same attr to different class/tag I make it like this:

#wrapper .content input[type=radio], .content input[type=checkbox]{
     border:none;
} 

Or:

#wrapper .content input[type=radio],input[type=checkbox]{
     border:none;
} 

Or:

#wrapper .content .block1, .block2{
     background:#FFF;
} 

Is this usage wrong? Would you recommend a site or (e)book or like this for true usage of css?

  • 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-13T18:41:23+00:00Added an answer on June 13, 2026 at 6:41 pm

    By using

     #wrapper .content input[type=radio],input[type=checkbox]{
         border:none;
    } 
    

    You are actually saying : The element with ID wrapper, having the class content and an input type of the type radio apply the following : (border:none) , for every input on the page having input type checkbox apply (border:none) .

    Everything after the comma is af it starts from zero, taking no previous mentioned clauses in account.

    But as Andy said, without an example of the HTML al we can do is explain how it is interpreted. (Look at the difference between block2 and .block2 .
    Block2 says there is an element <block2> and .block2 says there is an element (e.g.) <fieldset class="block2"> </fieldset>

    When I want to apply same attr to different class/tag I make it like this:

    To answer that, if you only want to specify a class , there is no need to explicitly mention an ID. You could just as well do

    .content input[type=radio],input[type=checkbox]{
    border:none;
    }

    There is no error in this, but in that case it will apply it to all elements with that class. So imagine you have 2 fieldsets, and one class .content , then to both the same css values will be applied.

    So if you want to specify which fieldset, you should use the ID of the encapsulating element, followed by the class.

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

Sidebar

Related Questions

I want to apply a Storyboard to my Rectangle Fill like this: <Rectangle Name=MyRectangle
I want to apply cycle to the div block with dynamic content. This content
I have two elements, I want to apply same background style, but different font
I want to apply the same changeset onto two different branches. Here's what I
I have list of divs all with the same class, I want to apply
I want to apply the same decorator to every method in a given class,
I want to apply the same properies to all my Polygons: Polygon polygon =
I want apply margin property for my html newsletter But Gmail ignores this CSS
I want to apply a different hyper link style to the following two things:
I have the exact same problem as this post . I want my custom

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.