Creating form layouts using CSS | August 19, 2003
A while ago I read an article at A List Apart about creating form layouts using CSS that you would normally use tables for. It was a great little article, but I could never quite get it to work.
I was trying to lay out a form today using this method, but it kept breaking in IE 5.x on Mac. Basically it displayed fine on all other browsers, but on IE5 Mac each subsequent row was being indented slightly.
Here is an example of what was going on.
I tried playing around with clear div's (see previous post). I added a clear div inside each row to make sure the row actually took up space. Then I added a clear div after each row and for some reason this fixed the problem.
I'm not sure exactly what was going on here, and I really don't like the fact that the form is now stuffed full of nasty clear div's. However it works in IE5 on Mac which is one thing. If anybody knows a better way of getting it to work, please let me know.
Posted at August 19, 2003 10:13 PM
gas said on August 19, 2003 10:32 PM
I’ve been reading your posts on all these css problems and agree totally with you that it’s sometimes a pain in the butt.
It’s frustrating because structurally you KNOW you’re doing all “right”, but still it doesn’t work.
Anyway, your solutions to these problems are very cool, and until browser render CSS without these sort of small bugs, we’ll still have to use hacks.
OT
BTW, i’m still looking for a way to embed flash in Xhtml without having to risk some people not seeing the .swf with the Flash Satay method.