Welcome to WebmasterWorld Guest from 50.17.16.177

Forum Moderators: not2easy

Message Too Old, No Replies

CSS and forms

Can this be done in CSS?

     
11:06 pm on Aug 18, 2002 (gmt 0)

New User

10+ Year Member

joined:Aug 13, 2002
posts:3
votes: 0


Hello

I have a form here:

<snip>

and can't quite get all the input fields exactly uniform, by which I mean the same length and beginning along the same (imaginary) left margin.

Is it possible to correct this using CSS?

Many thanks

visuallybasic2002@yahoo.com

[edited by: papabaer at 3:52 am (utc) on Aug. 19, 2002]
[edit reason] terms of service [/edit]

11:16 pm on Aug 18, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 10, 2000
posts:2151
votes: 0


sure you could do it using a couple divs and floating the relative to each other. OTOH (and I'm sure all the css folk will boo me here) drop it in a little table and be done with with it.
11:23 pm on Aug 18, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 21, 2002
posts:977
votes: 0


You could just change the layout. Instead of the way you have it arranged at the moment:

Topic: Re: aaaaaaaa
Name: (field)
E.mail: (field)
URL: (field)


you could do this:

Topic:
Re: aaaaaaaa
Name:
(field)
E-mail:
(field)
URL:
(field)


I think that would look fine, and it would all be left-aligned. No need for tables OR css.

11:30 pm on Aug 18, 2002 (gmt 0)

New User

10+ Year Member

joined:July 2, 2002
posts:8
votes: 0


This article at A List Apart has an example of exactly what you're after: [alistapart.com ].
12:23 am on Aug 19, 2002 (gmt 0)

New User

10+ Year Member

joined:Aug 13, 2002
posts:3
votes: 0


Hello

Very many thanks to you all for your posts.

I am tempted to follow Purple_Martin's idea:

Topic:
Re: aaaaaaaa
Name:
(field)
E-mail:
(field)
URL:
(field)

On the other hand, because there is a fair amount of VBScript behind the form, it might be neater to read up on the great tutorial provided by j_anstice. Yes, it does seem to cover just what I was looking for. As oilman suggests, a couple divs and floating the relative should do the trick!

At least with the link I have something to go on now, and if it becomes a problem, I'll follow Purple_Martin's idea.

Many thanks again - I'm grateful!

Quetzal

3:57 am on Aug 19, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 31, 2001
posts:1238
votes: 0


Hello Quetzal and welcome to Webmaster World. Please take some time to read the posting terms of service regarding URLS.

It looks as if you aready have some good options that will aid you in controlling your forms. We are glad to have you join us! - papabaer