W3C home > Mailing lists > Public > www-svg@w3.org > November 2013

Automatic centering and positioning

From: Paul LeBeau <paul.lebeau@gmail.com>
Date: Fri, 8 Nov 2013 11:27:37 +1300
Message-ID: <CACfsppCdENGek336J-JAXttF03U2gzogUT9WJBGLMzJoCbGotQ@mail.gmail.com>
To: www-svg <www-svg@w3.org>
Hi all

I have spent a bit of time on Stack Overflow lately, answering questions on
SVG.  It seems a very common use case that people want to centre elements
inside other elements.  For example, text in a circle, image in a box.

I have been wondering if this use case has been discussed before and
whether there were any previous proposals or interest in adding some sort
of feature that can automatically position elements with respect to a box
or other element.

Obviously you can achieve some control with child <svg>s and the text
baseline properties, but these can be hard to use and can require manual
tweaking.  Something automatic would be nice.

I had an idea or two about how you could do this, but wanted to check
whether other people agree it would be desirable (or not).

Received on Thursday, 7 November 2013 22:28:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:47 UTC