Page 1 of 1

Vertical Centering of Form Element

Posted: Mon Jan 08, 2007 5:42 pm
by iknownothing
Hey guys, I've tried searching, but cant find anything relevant...

Does anyone know how to vertically center form elements such as a combo box and a submit button, the usual way works with text boxes, just not those 2...

Posted: Mon Jan 08, 2007 6:29 pm
by feyd
If you can lock down the pixel dimensions, often you can use CSS to add margins or padding to adjust one or the other. However these days with more and more disabled persons getting online who may use standard browsers with special adjustments to completely different browsers.

Posted: Mon Jan 08, 2007 6:58 pm
by iknownothing
that doesn't work either....

Posted: Mon Jan 08, 2007 10:22 pm
by iknownothing
ok, just found something odd... they in fact do vertically center, but its the objects baseline that is center... how can i fix this, padding or margins wont work...?

Posted: Tue Jan 09, 2007 12:21 am
by feyd
It's difficult to understand what to change if we cannot see your code.

Just a reminder: take care in using the proper tags when you post the code. ;)