CSS Property:
top:
auto
10%
25%
50%
100%
Result:
Play with different "top" values for this yellow DIV element.
Note:
To "top" positioning elements using % (percent) values, use position:absolute.
CSS Code:
div#myBox
{
background-color:yellow;
width:100px;
position:absolute;
top:
auto
;
}
Click the property values above to see the result
W3Schools.com
- Play it