Aligning forms with DIV?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spencer Killen
    New Member
    • Jan 2011
    • 10

    Aligning forms with DIV?

    I want the forms to be 105 pixels from the top and 300 pixels from the left, I type in this code and the forms just appear in the top left corner.


    Code:
    <DIV style="position:absolute;top:105;left:300" >
    
    
    <form name="input" action="index2.htm" method="get">
    Name: <input type="text" name="user" /> <br />
    <input type="radio" name="sex" value="Male" /> Male<br />
    <input type="radio" name="sex" value="Female" /> Female <br />
    <input type="checkbox" name="bike" value="Yes" /> I have a bike<br />
    <input type="checkbox" name="car" value="Yes" /> I have a car <br />
    <input type="submit" value="Submit" />
  • AutumnsDecay
    New Member
    • Mar 2008
    • 170

    #2
    You're missing the unit measurements.

    <div style="position :absolute;top:1 05px;left:300px " >

    That should fix the issue.

    Comment

    Working...