Forms in CSS

Tabula Rasa

Stranger Than Kindness
Political Access
Joined
3 Jul 2002
Messages
3,233
I'm having some trouble with CSS regarding form borders,

I have this code in the beginning of the CSS:

INPUT {
background-color: #FFFFFF;
border : 1px solid #476297;
font-family : Verdana;
font-size : 8pt;
letter-spacing : 1px;
color : #476297;
}

When i create an textbox or a text era i have a blue border round it (instead of the usual grey one) , the problem is that the blue border appears around Radio Buttons as well and i don't like it... if i change the border color to FFFFFF the border around the Radio Button disappears but so does the border around the text boxes (and you cant see them).

anyone knows of a way to fix this?

Much appreciated :)
 
I am not sure how you do this text fashion, I never really looked, but you could redefine the HTML textbox tag to use the coloured border.

I know how to do this in dreamweaver, I will see about how its done by using text editor
 
Since radio buttons also use the <INPUT>-tag it will get the same modifications as the textbox. What you do is you change the CSS code to:

INPUT.textbox {
background-color: #FFFFFF;
border : 1px solid #476297;
font-family : Verdana;
font-size : 8pt;
letter-spacing : 1px;
color : #476297;
}

and change the textbox code to:

<INPUT TYPE="text" CLASS="textbox" VALUE="blabla">

This way you can have more classes of text boxes (like INPUT.redtextbox) and separate classes for radio buttons and normal buttons.
 
Congratulations, you now get a Benny as part of a life debt
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back