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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:49:05+00:00 2026-06-17T08:49:05+00:00

I would like to have the textarea fields in my form appear the same

  • 0

I would like to have the textarea fields in my form appear the same as the text input fields, cross-browser. And I don’t want to be forcing a custom style – I would like to just use whatever the standard style is within the user’s browser.

So I know I could use

textarea {
    border-style: inset;
    border-width: 2px;
}

and then they would match in Chrom[e,ium], but then they don’t match on Firefox/Iceweasel, for example.

So is there a straightforward way to say to the browser “please render textarea elements with whatever border you are using for input[type="text"]“?

  • 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-17T08:49:06+00:00Added an answer on June 17, 2026 at 8:49 am

    The answer to the actual question posed is: No, there is no way to say “make this element look like this one.” However, you can make them look consistent by applying the same style to both the textarea and the input. Though, in some browsers certain things look a certain way and there is no way around it.

    input[type=text], textarea {
        border-style: inset;
        border-width: 2px;
    }
    

    Other input types besides “text” were introduced in HTML5.For instance there are the “password”, “number”, and “email” input types that look like “text” inputs but have special behaviors. To make all of them look consistent, you will need to provide definitions for each input type in your css.

    input[type=text], input[type=password], input[type=email], input[type=number], textarea    {
        border-style: inset;
        border-width: 2px;
    }
    

    For a full list of the possible input types, here is a reference.

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

Sidebar

Related Questions

I would like to have some functionality by which if I write <textarea maxlength=50></textarea>
I have a text area on which I would like to listen to change
I have a basic empty form and would like to only show the submit
I'm creating a form with z3c.form and for a textarea, I would like to
I have a Django Model with a text field. I would like to modify
I have a form that looks like this: <form action=/assesment/savelist/ method=post> <input type=hidden name=owner
I would like to create a form that allows the user to input any
I have a simple form with text input and text area, but when I
I would like to check if a text field in the post form is
So in my project i would like have a nice treeview that has images.

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.