Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant make Input(button) become normal 2

Status
Not open for further replies.

biddingbong

IS-IT--Management
Sep 10, 2004
67
MU
Hi, Ive created a css and I use it in all my pages. Part of it is:
Input{
BORDER-RIGHT: #6495ED 1px solid;
BORDER-TOP: #6495ED 1px solid;
FONT-SIZE: 14px;
BORDER-LEFT: #6495ED 1px solid;
COLOR: #000000;
BORDER-BOTTOM: #6495ED 1px solid;
background: transparent;
}

I use it mainly for my input(text), but my input(button) are also being modified by the css(..and thats normal).
But I want my input(button) to be like normal buttons.
How can I do that?
Thanks
 
What I would do is give the button a class OR give the textboxes a class:

.textbox {
BORDER-RIGHT: #6495ED 1px solid;
BORDER-TOP: #6495ED 1px solid;
FONT-SIZE: 14px;
BORDER-LEFT: #6495ED 1px solid;
COLOR: #000000;
BORDER-BOTTOM: #6495ED 1px solid;
background: transparent;
}

Then:

<input type="text" class="textbox" name="tb1">
<input type="button" value="click me">

This way, any text box with a class of "textbox" will appear the way you want it to, but radio buttons, checkboxes, etc, won't have the same look as a text box.


*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
...or you could use the BUTTON tags for your buttons:

<button>Press Me!</button>

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top