SVG Is there a relative position?

Discuss SVG code, accessible via the XML Editor.
Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

SVG Is there a relative position?

Postby Vectorator » Wed Mar 11, 2015 3:34 pm

You know how in css.html

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: SVG Is there a relative position?

Postby tylerdurden » Wed Mar 11, 2015 10:03 pm

Will grouping the objects not suffice?
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: SVG Is there a relative position?

Postby hulf2012 » Thu Mar 12, 2015 12:45 am

Hello,

I'm not sure if what you want is possible...

One of the first result that appears when doing a search in "google" using "svg responsive" :

http://demosthenes.info/blog/744/Make-SVG-Responsive

There he uses.html
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Re: SVG Is there a relative position?

Postby Vectorator » Thu Mar 12, 2015 8:49 am

Thanks for the replies.

I couldn't find anything else that was quicker so I used php using a variable for the main position then adding + number for the offset for individual elements. Slightly time consuming to write the first time but worth it for the ease of moving all the objects at once.

Actually I discovered svg nesting also.

Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Re: SVG Is there a relative position?

Postby Vectorator » Thu Mar 12, 2015 3:37 pm

I'm reading a much more in depth svg tutorial.
It seems svg nesting is the solution.


Return to “SVG / XML Code”