PDA

View Full Version : css for text boxes


nikko50
11-06-2005, 12:15 AM
Hello all. How can I place the below into my stylesheet for text boxes??
style='border-style: solid; border-color: #FFFFFF; width:80; height:16; font-size:10px'

Lerura
11-06-2005, 12:32 AM
input[type=text] {
border-style: solid;
border-color: #FFFFFF;
width:80; height:16;
font-size:10px;

_Aerospace_Eng_
11-06-2005, 01:16 AM
input[type=text] {
border-style: solid;
border-color: #FFFFFF;
width:80; height:16;
font-size:10px;

That would be great only if all browsers supported it. IE will choke and won't even display the CSS for the input. It doesn't understand the type=text part yet.

Single Paradox
11-06-2005, 02:53 AM
textbox{} always served me well.

_Aerospace_Eng_
11-06-2005, 04:20 AM
textbox{} always served me well.
What browser are you using?
That doesn't work in any modern browser.

_Aerospace_Eng_
11-06-2005, 04:22 AM
Just use input
input {
border:1px solid #FFF;
width:80px;
height:16px;
font-size:10px;
}
Any input box you don't want styled then just give it a class or an id and give it a style of its own.

Blah made a new post sorry, can a mod combine this one and my previous post please?

PhotoJoe47
11-06-2005, 07:11 PM
Just use input
input {
border:1px solid #FFF;
width:80px;
height:16px;
font-size:10px;
}
Any input box you don't want styled then just give it a class or an id and give it a style of its own.

Blah made a new post sorry, can a mod combine this one and my previous post please?
I think it would be better to give this style an id and use it for the text boxes he would want style this way and leave default for everythings else, unless he want a different style. Which can make a new style id

input.text1 {
border:1px solid #FFF;
width:80px;
height:16px;
font-size:10px;
}

Then in body

<input class="text1" type="text" ....>

I'm new to using CSS so I might be off a bit, but I think you get the ideal.

PhotoJoe