Textbox appearance CSS

any reason the following code in my css file wont work on all the textboxes where there is a reference to the css file on that page?
TextBox { 

    font-family: Arial; 
    background-color: Blue;
    color: Blue;
    cursor:progress;
    
}

Open in new window

LVL 1
DB_FuryAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul MacDonaldDirector, Information SystemsCommented:
If there's CSS on the page itself or the control itself that overrides the behavior in the CSS file.
0
LZ1Commented:
Your css naming convention isn't right.  Try this:
Change TextBox to
input.text
0
JF0Commented:
There are three way to implement CSS on a web page and they carry a hierarchical priority.

External Style Sheets can change the look of an entire page. This type of usage is often applied to multiple pages that require the same styles.

<head>
 <link rel="stylesheet" type="text/css" href="mystyle.css" />
 </head>

Internal Style Sheets can change the look of the page which they are applied to. This is useful when a single page needs its own unique style.

<head>
 <style type="text/css">
 hr {color:sienna;}
 p {margin-left:20px;}
 body {background-image:url("images/back40.gif");}
 </style>
 </head>

Inline Style Sheets should rarely be used. They are used on individual tags and only affect that tag. They override any Internal or External style sheet.

<p style="color:sienna;margin-left:20px">This is a  paragraph.</p>

So the heirarchical order goes like this, with 4 being the highest priority:
1. Browser default
2. External style sheet (often this contains a CSS reset to override the Browser Default)
3. Internal style sheet (in the head section)
4. Inline style (inside an HTML element)

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

govindarajan78Commented:
assign a class for the text box and use the class name in the css

or do as @LZ1 says
0
Innocent_EyesCommented:
input[type=text] {
   font-family: Arial;
    background-color: Blue;
    color: Blue;
    cursor:progress;
}
0
LZ1Commented:
Any updates?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.