[html5] button: why is image not centred vertically?

Ravi Kaanth ravikaanth1220 at gmail.com
Fri Mar 9 01:42:14 PST 2012


http://www.html5canvastutorials.com/tutorials/html5-canvas-rectangles/

On Fri, Mar 9, 2012 at 3:04 PM, jonathan chetwynd <jay at peepo.com> wrote:

> <!doctype html>
> <html>
>   <button>
>     <svg xmlns="http://www.w3.org/2000/svg"
>       width="10"
>       height="10">
>       <rect x="0" y="0" width="10" height="10" />
>     </svg>
>   </button>
> </html>
>
> is there a means** to centre image vertically, with minimal gap?
>
> note there is no gap (maybe 1px?) at top, but significant gap at
> bottom (maybe 4px?), why is this?
>
>
> kind regards
>
> ** ** ** **
>  <http://www.peepo.com/>
>
> Jonathan Chetwynd
>
> ~:" jay at peepo.com <j.chetwynd at btconnect.com>
> http://www.peepo.com
>
> +44 (0) 20 7978 1764
>
> **setting
>
> margin: 0px;
> padding: 0px;
>
> has no effect
>
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20120309/397abebc/attachment-0003.htm>


More information about the Help mailing list