Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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
    New Coder
    Join Date
    Sep 2011
    Location
    England
    Posts
    39
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •