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

  • Home
  • SEARCH
  • 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 418973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:43:53+00:00 2026-05-12T18:43:53+00:00

I want to add style in ASP.NET textbox control. I couldn’t find textbox element

  • 0

I want to add style in ASP.NET textbox control. I couldn’t find textbox element in elements list. I can put style in all input controls using the below code in CSS.

input
{
backgroud-color:black;
}

But this changes the background color of all input controls like buttons, radiobox, etc.

I want to do it exclusively with textbox, I don’t want to do it with CSS class.

  • 1 1 Answer
  • 1 View
  • 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-12T18:43:54+00:00Added an answer on May 12, 2026 at 6:43 pm

    This will do it:

    input[type=text]
    

    Though it might not work in all browsers (e.g. IE). The only way to ensure that would be to add a class or put it inside a span element.

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

Sidebar

Related Questions

i have certain element in a asp.net control: <a href=# title= style=background-image: url('../i/foo/image.png')> but
I have a website built with ASP.NET (3.5) and want add some level of
I'm trying to style an asp.net radiobutton list however there doesnt appear to be
How to put Validation in dynamicaly html table with asp.net C#? ? I want
I want to add some style to head tag in html page using javascript.
I have a list of string values that I want add to a hashtable
Playing around with customizing the appearance of the Wizard control in ASP.Net, and I've
I have a panel in asp page and I want to add image to
work on asp.net vs05.i want to set mouse event on gridview Then based on
I have this scenario. I need to show 3 list boxes on a ASP.NET

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.