Welcome to WebmasterWorld Guest from 54.163.115.193

Forum Moderators: not2easy

CSS and forms

Can this be done in CSS?

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

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month