NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Form Style

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
4 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 06-03-2006, 12:52 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life

Form Style


I hope this is in the right form.

I have this code:
Code:
<form action="login2.php" method="post">
<font face="Verdana" size="2">Username</font>:<input type="text" name="username" size="15" style="font-family: Verdana; color: #FFFFFF; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19" /><font face="Verdana" size="2"> Password:</font><input type="password" name="password" size="15" style="color: #FFFFFF; font-family: Verdana; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19" /> 
<input type="submit" value="Login" style="color: #FFFFFF; font-family: Verdana; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19" />
</form>
Does the size= and the style= a good idea? Does it work on all browsers or should I use CSS?
snike is offline  
Old 06-03-2006, 01:17 PM   #2 (permalink)
NamePros Regular
 
hairyfreak's Avatar
Join Date: Dec 2005
Location: Derbyshire, UK
Posts: 885
hairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nice
 



It should work fine in all browsers. As for using CSS, the style="" bit is CSS.
hairyfreak is offline  
Old 06-03-2006, 01:18 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
ok thanks!
snike is offline  
Old 06-03-2006, 03:03 PM   #4 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice
 



snike, you're using way too much code there, allow me to declutter it for you:

Code:
<style type="text/css">
.class1 {color: #FFFFFF; font-family: Verdana; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19}
</style>

<form action="login2.php" method="post">
<font face="Verdana" size="2">

Username:
<input type="text" name="username" size="15" class="class1" />

Password:
<input type="password" name="password" size="15" class="class1" /> 

<input type="submit" value="Login" class="class1" />

</form>
Now whenever you want to have an input box styled the same way, just put class=class1, along with the CSS of course, and you're sorted. Hope that helps and speeds your pages up a little bit.
Shorty is offline  
Old 06-03-2006, 08:28 PM THREAD STARTER               #5 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
ok thanks shorty! that helped!

Any one know how to make the height of a text box smaller?
take a look at www.emeraldfeathers.com
you can see the log in form where it says EF Connect.
The backround of the cell table continues because of something. it shouldn't continue like that... i think it is like that because of the text boxes...can someone help..plz..
snike is offline  
Old 06-03-2006, 09:03 PM   #6 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
<textarea style="height: 50px;">stuff</textarea>

or

<textarea rows="4">stuff</textarea>

I think you can figure out what each one does..
Dan is offline  
Old 06-04-2006, 05:03 AM   #7 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,963
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
For some form fields like <input type="text"> I advise you to use the maxlength tag too so you can limit the size of user input. For example if the matching db field allows 50 characters it would be a good idea to have maxlength="50" in the matching text box. And of course, always check user input before saving to the DB so as to avoid SQL injection attacks.
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is online now  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:14 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger