HighDots Forums  

A Truly Vertically Centred Button

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss A Truly Vertically Centred Button in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
william.oram@gmail.com
 
Posts: n/a

Default A Truly Vertically Centred Button - 09-26-2007 , 11:01 AM






Consider the table cell

<td> <!--Adding 'height=100 style="vertical-align:middle"' makes it
easier to view -->
<form>
<input name="button" type=button value=Go>
</form>
</td>

This will produce a cell with a button vertically centred, but visibly
off: the button is being centred by its baseline, not its true centre.
What CSS can be applied to truly make this button vertically centred
(i.e., the space above and below is equal)?

Thanks!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.