Web Analytics Made Easy -
StatCounter How do I place a button at a specific point on the webpage - CodingForum

Announcement

Collapse
No announcement yet.

How do I place a button at a specific point on the webpage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I place a button at a specific point on the webpage

    How do I place a button at a specific point on the webpage, somehow type co ordinates of a point on the page and the button will appear there?

  • #2
    Hi there,

    The method that I use to position objects is CSS, see below:

    Code:
    <html>
    <head>
    </head>
    <body>
    <input type="button" value="Button" style="margin:50px 100px 150px 200px">
    </body>
    </html>
    You can adjust the margin figures to change the position of the button.

    Top margin is 50px
    Right margin is 100px
    Bottom margin is 150px
    Left margin is 200px

    I hope this helps, let me know if you need any further assistance.

    Comment


    • #3
      You dont provide any details in your question, nor code you've already tried. PLacing a button depends of many factors. First, is this an image? or a submit button in a form? Where would you like the button? That also depends on its parent or containing element.

      Please post your code or live site link, and detail where you'd like the button on your page.
      Teed

      Comment

      Working...
      X