Vertical Centering of Form Element

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Vertical Centering of Form Element

Post 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...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

that doesn't work either....
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post 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...?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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. ;)
Post Reply