Jump to content
xisto Community
Sign in to follow this  
rldowling03

Text Box Help I need elp for getting text boxes on my site

Recommended Posts

Hi all, i have a website and i have a simple email script, but this problem also applies to other things to but i will use that as an example. Ok on my site is my Email Script and all the text boxes are all badly intergrated and this is the same for any boxes like that, and i wanna know is tere a way to put like a border or something around it?

Share this post


Link to post
Share on other sites

do this

<p><form action="FormToEmail.php" method="post"><table border=1><tr><td>Name</td><td><input type="text" size="30" name="Name"></td></tr><tr><td>Email address</td><td><input type="text" size="30" name="Email"></td></tr><tr><td valign="top">Comments</td><td><textarea name="Comments" rows="6" cols="30"></textarea></td></tr><tr><td> </td><td><input type="submit" value="Send"></td></tr></table></form></table>

you notice in the table tag I have a border=1, that will set up a border for you, but to take it one step more you can apply css to it.

visit this page

http://forums.xisto.com/no_longer_exists/
to put some css to it.

Share this post


Link to post
Share on other sites

this is directly from the source code

<style type="text/css"><!--.form label {width:4em; float:left; display:block; margin-right:0.5em; text-align:right}.form .submit input {margin-left:4.5em}.form input {font-weight:bold}.colours input {color:#781351; background:#fee3ad; border:1px solid #781351}.colours .submit input {color:#000; background:#ffa20f; border:2px #d7b9c9 outset}.form fieldset {border:1px solid #781351; width:22em}.form legend {background:#ffa20c; border:1px solid #781351; letter-spacing:0}.form fieldset p {margin-top:0}//--></style>

you can put that directly on the doc or do a external css for it.

then when you want to apply those settings to the form do this

<form action="" class="form">

what class will do is read from the css that you input and it will show up however you design it.

Share this post


Link to post
Share on other sites

Ok i just put that in my code and gonna try it now. I dont really like my current layout of my site as it just been causing me trouble and i cant find any oter good onesOk no it didnt work. I tink i am just going to get a new site layout i am sick of this one!!!! You know of any good free templte sites?

Share this post


Link to post
Share on other sites

your best bet for great free templates is http://www.oswd.org/ the best part about these are some sweet designs that are coded perfectly, mind you, you might have to code stripping ot adjust to your liking but it gives you a good idea on how to have a perfect coded site.

or if you want you could design your template in straight gfx or flash.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.