aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes svg position Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "svg position" Watch "svg position" New topic
Author

svg position

haritha hari
Greenhorn

Joined: Nov 14, 2012
Posts: 29

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....
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 296
    
    5

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?


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
haritha hari
Greenhorn

Joined: Nov 14, 2012
Posts: 29

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
Ranch Hand

Joined: Nov 06, 2012
Posts: 296
    
    5

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

Joined: Nov 14, 2012
Posts: 29





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
Ranch Hand

Joined: Nov 06, 2012
Posts: 296
    
    5

  • CSS Positioning 101
  • HTML Dog: Page Layout
  • MDN: position
  • SitePoint Reference: Positioning
  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: svg position