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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:59:38+00:00 2026-06-11T05:59:38+00:00

I have these css for my form but it lack of css for drop

  • 0

I have these css for my form but it lack of css for drop down list/select. I need same format as below:

CSS:

form input[type="password"], form input[type="text"] {
display: block;
width: 94%;
margin: 5px 0;
padding: 8px;
color: #777;
font-family: Arial;
font-size: 13px;

-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;

border: 1px solid #ADADAD;
outline: none;
}

form textarea {
display: block;
width: 94%;
margin: 5px 0;
padding: 8px;
color: #777;
font-family: Arial;
font-size: 13px;
overflow: auto;
resize: none;

-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;

border: 1px solid #ADADAD;
outline: none;
}
  • 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-11T05:59:40+00:00Added an answer on June 11, 2026 at 5:59 am

    You should use CSS class names for inputs based on their type. For instance, text input should have a CSS class name “TextBox” and check input should have a CSS class name “CheckBox” and you can set all the css attributes separately. Also you can set multiple CSS class names on a single element like "Control TextBox Disabled", "Control CheckBox", or "Control Label Red-Text".

    Also you can use JQuery selector and find any kind of input and do whatever you want.

    I hope this helps:

    .Control
    {
        display: block;
        width: 94%;
        color: #777;
        font-family: Arial;
        font-size: 13px;
    }
    
    .TextBox-Base
    {
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        border: 1px solid #ADADAD;
        outline: none;
        margin: 5px 0;
        padding: 8px;
    }
    
    .TextBox, 
    .PasswordBox
    {
    }
    
    .RichTextBox
    {
        overflow: auto;
        resize: none;
    }
    
    .DropDownList
    {
    }
    

    HTML sample code:

    <input type="text" class="Control TextBox-Base PasswordBox" />
    <input type="password" class="Control TextBox-Base PasswordBox" />
    
    <textarea class="Control TextBox-Base RichTextBox"></textarea>
    
    <select class="Control DropDownList" ></select>
    

    Selecting elements using JQuery:

    $(".TextBox-Base") //returns all the elements that has "TextBox-Base" class name included.
    
    $(".TextBox") //returns all the elements that has "TextBox" class name included.
    
    $(".PasswordBox") //returns all the elements that has "PasswordBox" class name included.
    
    $(".RichTextBox") //returns all the elements that has "RichTextBox" class name included.
    
    $(".DropDownList") //returns all the elements that has "DropDownList" class name included.
    

    Cheers

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

Sidebar

Related Questions

I have these three lists with the same number of elements List<String>competitoinsIDs = new
I have a range of items in an HTML drop-down menu that I need
I have a form and 2 javascript functions below but I am getting 2
I have these 4 pages and works fine, but now i need to send
A lot of these pages are like mini applications that have their own CSS
I have an index.html and global.css files. When I open these files at Coda,
I have a form with text area and defined resize:both in css. However, the
I've got a form that I'm trying to layout semantically and format with CSS.
I'm trying to create an add comment form on a page, but it'll need
I have a php form and also the css code. I am trying to

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.