homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
CSS and forms
Can this be done in CSS?
Quetzal




msg:1219448
 11:06 pm on Aug 18, 2002 (gmt 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]

 

oilman




msg:1219449
 11:16 pm on Aug 18, 2002 (gmt 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.

Purple Martin




msg:1219450
 11:23 pm on Aug 18, 2002 (gmt 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.

j_anstice




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

This article at A List Apart has an example of exactly what you're after: [alistapart.com ].

Quetzal




msg:1219452
 12:23 am on Aug 19, 2002 (gmt 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

papabaer




msg:1219453
 3:57 am on Aug 19, 2002 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved