Thursday, 19 September 2013

Absolutely positioned element margins move other elements

Absolutely positioned element margins move other elements

I need to animate the margin of form inputs without affecting any other
element's positions. So I gave all the inputs position: absolute for all
of the inputs in the form.
However, this has created a problem for me: all of the inputs stick close
together and if add a margin-top: 40px to them it affects all of the
inputs as one element rather than spacing them out individualy.


How do I space out all the input elements individually?

No comments:

Post a Comment