[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 06-03-2006, 01:52 PM   · #1
snike
NamePros Regular
 
snike's Avatar
 
Location: USA
Trader Rating: (15)
Join Date: Mar 2006
Posts: 472
NP$: 7.68 (Donate)
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?


Please register or log-in into NamePros to hide ads
__________________
Online Multimedia Awards - Nominate your own webhost and win glory!
Emerald Feathers - Indie Films, Graphics, Funny Videos, and More! Version 4 is out!
Snike loves HostingRegion! No seriously. They are the best.
Cheap, Quality, Paid Posting Service - Starts at $3.30
snike is offline   Reply With Quote
Old 06-03-2006, 02:17 PM   · #2
hairyfreak
NamePros Regular
 
hairyfreak's Avatar
 
Name: Harry Truman
Location: Derbyshire, UK
Trader Rating: (13)
Join Date: Dec 2005
Posts: 887
NP$: 26.45 (Donate)
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   Reply With Quote
Old 06-03-2006, 02:18 PM   · #3
snike
NamePros Regular
 
snike's Avatar
 
Location: USA
Trader Rating: (15)
Join Date: Mar 2006
Posts: 472
NP$: 7.68 (Donate)
snike has a spectacular aura aboutsnike has a spectacular aura about
Save a Life
ok thanks!
__________________
Online Multimedia Awards - Nominate your own webhost and win glory!
Emerald Feathers - Indie Films, Graphics, Funny Videos, and More! Version 4 is out!
Snike loves HostingRegion! No seriously. They are the best.
Cheap, Quality, Paid Posting Service - Starts at $3.30
snike is offline   Reply With Quote
Old 06-03-2006, 04:03 PM   · #4
Shorty
Senior Member
 
Shorty's Avatar
 
Name: Thomas White
Location: England
Trader Rating: (15)
Join Date: Sep 2005
Posts: 1,033
NP$: 31.15 (Donate)
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   Reply With Quote
Old 06-03-2006, 09:28 PM   · #5
snike
NamePros Regular
 
snike's Avatar
 
Location: USA
Trader Rating: (15)
Join Date: Mar 2006
Posts: 472
NP$: 7.68 (Donate)
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..
__________________
Online Multimedia Awards - Nominate your own webhost and win glory!
Emerald Feathers - Indie Films, Graphics, Funny Videos, and More! Version 4 is out!
Snike loves HostingRegion! No seriously. They are the best.
Cheap, Quality, Paid Posting Service - Starts at $3.30
snike is offline   Reply With Quote
Old 06-03-2006, 10:03 PM   · #6
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,801
NP$: 54.00 (Donate)
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   Reply With Quote
Old 06-04-2006, 06:03 AM   · #7
sdsinc
Law and disorder
 
sdsinc's Avatar
 
Name: Kate
Location: Expat
Trader Rating: (57)
Join Date: Aug 2005
Posts: 5,481
NP$: 1585.11 (Donate)
sdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond repute
Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV
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.
sdsinc is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Buy Flash Arcade Game Script Hunting Moon Proof is in the Parking
Advertise your business at NamePros
All times are GMT -7. The time now is 10:26 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0