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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS + Forms

Status
Not open for further replies.

foxymorons

Technical User
Aug 3, 2004
27
AU
Instead of the standard looking form, I would love something with a smaller border. is an example of what I am after. With the really thin border!

Oh, also on forms, does anyone have a really really simple mailing list script?

Any suggestions would be great!
 
Hi,

Well, forms actually don't have a border around them. The input fields, however, do. Consider this example:

Code:
<FORM ACTION="submit.php" METHOD="post">
  Your Name <INPUT TYPE="Text" NAME="name" VALUE="" SIZE="20" STYLE="border : solid 1px #F00; background-color : #FFFFC8;">
</FORM>

This produces an text input box with a thin red border and yellow background.

Here's a good reference on the CSS border property:
Now, to get a border around forms I can think of :

1. Place the form in a fieldset
Try this link :
2. Place the form elements in a table

3. Place the form elements in DIVs or SPANs

For each of the above, you can use CSS to define any border you like.

Good Luck


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top