Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Three column forms with CSS
October 23, 2006, 11:29 pm
rate this thread
I am trying my best to create a three column form using CSS but am
having no luck. It looks fine in Firefox but is mangled in IE. Here is
my best attempt:
<form action="/cgi-admin/subscribe.pl" method="post">
<input type="checkbox" name="itemmembership-1yr" value="yes"
<label for="itemmembership-1yr">Standard Membership</label>
<input type="text" name="amtmembership-1yr" value="99.00"
<input type="checkbox" name="itemstudent-1yr" value="yes"
<label for="itemstudent-1yr">Student Membership</label>
<input type="text" name="amtstudent-1yr" value="49.00"
<input type="submit" name="op" value="Enter Payment" />
Pretty simple as you can see.
Can anyone tell me how to get a proper three column css form layout
that works in IE and Firefox? Everything I can find on the internets is
for two column layouts.
Re: Three column forms with CSS
In our last episode,
talented dbasch broadcast on comp.infosystems.www.authoring.html:
Check out "skidoo too"
Stuff still breaks in IE, but it is the usual stuff related to
spaces around LI, not the three column part. The basic idea is
that the central column has huge right and left margins and you
put the two other columns on the margins. It has the advantage
that the central column (which typically is the main the content)
comes first, so there aren't tons of navigation crap at the top
of the page as view by text browsers or robots (spiders).
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner
Nobody has ever, ever, EVER learned all of WordPerfect.
Re: Three column forms with CSS
So why do you post here and not c.i.w.a.stylesheets?
Actually, your question _should_ have been "how do I mark up such-and-such a
form in HTML?" (to be solved before you consider the rendering problem), and
_then_ it would have belonged here. But you should have specified what
such-and-such is and posted the _URL_ of the best effort so far.
No, it's just a fragment. Post the URL.
You won't get much of a browser coverage with that.
So what happens when I copy your page (adding a suitable <base href...> tag)
and edit the above element, changing "99.00" to "0.00" for example, and
submit the order? The point is that you should make the prices visible on
the page as normal text (not fields) and map the order type to a price _on
the server_. (And, of course, the prices should appear with currency unit
names, symbols, or abbreviations, such as "$". After all, this _is_ the
World Wide Web.)
Not really. Are you using checkboxes, instead of radio buttons,
intentionally to make some people submit duplicate subscriptions (paying
both normal and student price), or didn't you just know about radio buttons?
Your form content looks very much like a simple table, with controls (<input
...>) in one column, corresponding labels in another column, and price
information for the choice in the third column. If you use a <table> element
for it, the layout problem almost solves itself in a puff of logic, though
you will have some minor CSS issues to deal with in order to make the
Jukka K. Korpela ("Yucca")
- » Text and Image inside table <td> Alight Text Left and Image right in same cell ??
- — Next thread in » HTML Authoring Forum
- » ghost html button and textarea in css / dhtml - troubleshooting?
- — Previous thread in » HTML Authoring Forum