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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:24:14+00:00 2026-06-15T16:24:14+00:00

I have 5 fieldsets which has unique IDs. I want to give a particular

  • 0

I have 5 fieldsets which has unique IDs. I want to give a particular styling to all the input tags in it. For example:
#fieldset-long1,#fieldset-long2,#fieldset-long3,#fieldset-long4,#fieldset-long5{style for fieldset}

Now to give style to the inputs in these 5 field sets, I will have to write #fieldset-long1 input,#fieldset-long2 input,#fieldset-long3 input{style for input}.

Just wondering if there is an easier CSS selector to specify the parents of a tag that I want to apply styles to.

HTML for fieldset:

<fieldset id="fieldset-long1">
<dt><label for="email">Email:</label></dt>
<dd><input type="text" name="email" id="email" value="" tabindex="3" /></dd>
</fieldset>
  • 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-15T16:24:15+00:00Added an answer on June 15, 2026 at 4:24 pm

    with css lower than 3 it is not possible but with css3 you can do something like this :

    fieldsets [id^="fieldset"] input{/* style for input*/ }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fieldset in which I have some input fields and a checkbox.
I have an HTML form which consists of several fieldsets (each has identical fields).
What is the right jQuery selector to use for all fieldset elements which have
I have a master page called MasterPage.master which has a <fieldset> with a <legend>
I currently have a login.html, which has inside it a form for login. All
I have a registration form and used fieldset to order the input fields in
I have multiple radiobutton lists within a fieldset tag. I only ever want one
I'm stuck on something. I have a form that has fields which only show
If I have the following jQuery mobile html; <fieldset data-role=controlgroup data-type=horizontal name=Smoker id=Smoker> <input
For example, the Meyer reset has a long list of elements 1 which I

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.