Default border settings for SELECT and INPUT


I am creating a toolbar that has input and select elements in it.  I inject this toolbar into pages that have their own style.  I have no control over their style.  Often, these pages will contain:

*      { margin: 0px; padding: 0px; border: 0px; }

This makes my input and select (in firefox) elements lose their border.  So, I want to put the proper style on my elements inline.  

I'm looking for a style that makes my elements look normal no matter what other css is in the page (especially the line above).  Just changing the border-width does not work.  I need all of the border properties.

Thank you!
Who is Participating?
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.

<input style="border: 2px #cccccc solid;">


Is that what you're asking for ???  Not really clear on the Q

muellerfanAuthor Commented:
Sorry, I'll try to be more clear.

I need a style that will undo the border: 0px and make the input and select look exactly like they would look if there were no styles on the page.
Add this to your stylesheet below the * rule:

input { border: outset 2px; }
select { border: inset 2px; }


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
muellerfanAuthor Commented:
Well, that by itself didn't work, but it pointed me in the right direction.  Here is my final in case anyone else is interested:

This was tested for input=text, input=submit, and select

.inputtext {
            border: solid;
            border-top-width: 2px;
            border-right: 1px solid #b5b5b5;
            border-bottom: 1px solid #b5b5b5;
            border-left-width: 2px;

select {
            border: inset;
            border-top-width: 2px;
            border-right-width: 1px;
            border-bottom-width: 1px;
            border-left-width: 2px;

.inputsubmit {
      border: outset;
      border-top-width: 1px;
      border-right-width: 2px;
      border-bottom-width: 2px;
      border-left-width: 1px;

option {
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

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.