Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Whats the best way to align text fields in forms?
Old 07-04-2007, 09:28 AM Whats the best way to align text fields in forms?
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
as the subject says:

Whats the best way to align text fields in forms?

The only ways i know of are to either use tables, which seem to be a big no no these days or to use a padding image which is just impractical and messy.
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

Portfolio:
Please login or register to view this content. Registration is FREE

Techno Pup:
Please login or register to view this content. Registration is FREE

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
 
Register now for full access!
Old 07-04-2007, 09:52 AM Re: Whats the best way to align text fields in forms?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You don't need either, use CSS and you can adjust the padding in the stylesheet.

http://css-discuss.incutio.com/?page=FormElements
http://www.picment.com/articles/css/funwithforms/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-04-2007, 04:41 PM Re: Whats the best way to align text fields in forms?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Vicky I admit that sometimes I'm lazy and will still use a table to align a form, but LNR is right you can do it with css alone. How depends on the layout you want, but padding and margins will likely come into play.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-09-2007, 03:06 AM Re: Whats the best way to align text fields in forms?
Novice Talker

Posts: 9
Name: salu
Trades: 0
i also use table to align.it is easy.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
s4salman is offline
Reply With Quote
View Public Profile
 
Old 07-09-2007, 06:44 AM Re: Whats the best way to align text fields in forms?
Ninja's Avatar
Experienced Talker

Posts: 30
Trades: 0
There are a few problems associated with using tables including:-

a) Some browsers must load the entire table before any of it will be seen within the browser
b) I believe there may also be accessibility issues for special needs persons also

Hence the shift from table based web design to CSS.

Last edited by Ninja; 07-10-2007 at 02:23 PM.. Reason: Removed Inaccurate claim
Ninja is offline
Reply With Quote
View Public Profile
 
Old 07-09-2007, 07:16 AM Re: Whats the best way to align text fields in forms?
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
thanks for your help - a little bit of padding worked wonders
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

Portfolio:
Please login or register to view this content. Registration is FREE

Techno Pup:
Please login or register to view this content. Registration is FREE

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
Old 07-09-2007, 02:36 PM Re: Whats the best way to align text fields in forms?
Novice Talker

Posts: 8
Trades: 0
use div to align text becouse div tag is search engine freindly
__________________

Please login or register to view this content. Registration is FREE

Web Site Developer
Please login or register to view this content. Registration is FREE

Free Webdirectory And Review Rating Website
Please login or register to view this content. Registration is FREE
sunnyverma1984 is offline
Reply With Quote
View Public Profile
 
Old 07-09-2007, 07:16 PM Re: Whats the best way to align text fields in forms?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Ninja, search engines have no problems reading text in tables. I'm not sure where you got that, but it's wrong.

You're right though about the need for browsers to read the entire table code before presenting it. I think they all do. The need to read the code once to understand the structure of the table and then they read it a second time to actually display it. If you have a single table that's not to big it probably isn't an issue, but if you have tables nested in tables the time could be significant.

Tables can be made accessible and css can be made inaccessible.

In the end I agree that moving to css is the way forward.

sunnyverma, there's nothing especially search engine friendly about a div. You could develop a search friendly site with tables and you can create an uncrawlable site with divs. I absolutely believe in using css to layout a page and site for a lot of reasons, but search engines really don't care that much. I'd like them to because that's how I develop sites, but search engines are interested in your content and being able to get to your content.

There's plenty of speculation about css improving how well your site does with search engines, but little to know proof.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-09-2007, 10:15 PM Re: Whats the best way to align text fields in forms?
downliner's Avatar
Extreme Talker

Posts: 208
Location: Orkney
Trades: 1
I found it difficult coding a form in CSS the first time I tried it but you can make them look so much nicer in the long run if you do.








.
__________________

Please login or register to view this content. Registration is FREE
downliner is offline
Reply With Quote
View Public Profile Visit downliner's homepage!
 
Old 07-10-2007, 07:22 AM Re: Whats the best way to align text fields in forms?
Ninja's Avatar
Experienced Talker

Posts: 30
Trades: 0
Sorry for the misinformation about the indexing of tables but I can swear I read something like that in my internet travels. Perhaps they have more problems associated with getting relevant info with a table as opposed to within a div.
In terms of accessibility also the way the information is presented in a table can be totally confusing to and hamper persons with a screen reader. With CSS the div with the sites main content can be put before other elements like navigation, advertisements etc.
I do agree that someone can use so many divs as to totally negate its benifits
Ninja is offline
Reply With Quote
View Public Profile
 
Old 07-11-2007, 12:14 AM Re: Whats the best way to align text fields in forms?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
No need to apologize. Open discussion is why we're all here. I know there are some people who will insist that css is better for search engine results, but I don't think there's really any proof. It might be that people coding with css are making less fatal search mistakes than those coding with tables.

I think you're probably more likely to develop a search friendly site with css than you are with tables, but I think it's more that people who understand how to develop for a search engine will prefer to use css. I think you can build search friendly sites with either.

That makes sense about the accessibility. I wonder if it's again more to do with who's doing the coding. I would think you could easily create a css driven site that's confusing to screen readers too. But I can see how all the table nesting would create problems that css wouldn't.

And just to make sure we're clear I never develop anything with a table layout. Sadly I've had to work on existing sites that use them, but I only develop css driven layouts.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Whats the best way to align text fields in forms?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.91457 seconds with 12 queries