How to give the (x,y) positoion for a object

Discussion in 'HTML & Website Design' started by itsmemaneesh, Nov 27, 2006.

  1. #1
    How can I give the exact position to an object(say button)?
     
    itsmemaneesh, Nov 27, 2006 IP
  2. Bondat

    Bondat Peon

    Messages:
    2,397
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Used Java Applet. Then integrate it to an HTML file.
     
    Bondat, Nov 27, 2006 IP
  3. soulshock

    soulshock Peon

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try using this:

    <DIV STYLE="position:absolute; top:50px; left:40px; width:400px; height:300px; background-color:blue;"></DIV>

    then place the button in between the div tags. :)
     
    soulshock, Nov 27, 2006 IP
  4. Luke

    Luke Peon

    Messages:
    111
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can also use that style tag to place it in relavence to the place it literally appears.

    So for example if you put it in a 200x200 table on your page then use STYLE="position:absolute; top:50px; left:40px;" it would appear 50 pixels from the top and 40 from the left in that table.

    Hope this helps.
     
    Luke, Nov 27, 2006 IP