• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

svg position

 
Greenhorn
Posts: 29
Hibernate Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai frnds

How to set starting postion of svg in web page?

How to set x and y co ordinates for svg creation...?

Please tell me....
 
author
Posts: 297
5
Android Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The SVG element will be positioned according to exactly the same rules as any other element you might put in the web page. What is the problem you're trying to solve?
 
haritha hari
Greenhorn
Posts: 29
Hibernate Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not asking about SVG elements....

My question is we use <svg> to allocate some space in web page right...

And in that Allocation what attributes are used to tell the starting postion of svg area in web page i mean x and y co-ordinates..?

by default there values are 0..

Please tell me that solution for this problem....
 
Rob Crowther
author
Posts: 297
5
Android Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

haritha hari wrote:I am not asking about SVG elements....



OK...

haritha hari wrote:My question is we use <svg> to allocate some space in web page right...



So why in the very next sentence are you talking about the <svg> element?

haritha hari wrote:And in that Allocation what attributes are used to tell the starting postion of svg area in web page i mean x and y co-ordinates..?



Exactly the same attributes that are used to tell the starting position as for any other element, like <div> or <p>.

haritha hari wrote:by default there values are 0..



No, by default the values are determined by the preceding content on the page unless you change things with CSS.

haritha hari wrote:Please tell me that solution for this problem....



What problem? Your follow up post has not made what your problem is any clearer to me. Maybe you should try posting an code example of what you mean?
 
haritha hari
Greenhorn
Posts: 29
Hibernate Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator




Using this tag we create svg...

right...


In above tag is it possible to tell x and y positions.......

in web page.
 
Rob Crowther
author
Posts: 297
5
Android Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
  • CSS Positioning 101
  • HTML Dog: Page Layout
  • MDN: position
  • SitePoint Reference: Positioning
  •  
    Seriously? That's what you're going with? I prefer this tiny ad:
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic