Home → References → CSS Properties →
CSS Property: top
For absolutely positioned boxes, specifies how far from the top of the containing box (which is the first containing relatively positioned box or the page itself) the box should be.
For relatively positioned boxes, specifies how far from the top a box should be shifted.
HTML Dog is hosted by Titan Internet
Possible Values
- [percentage]
- [length]
inheritauto (default)
Example
#forsale {
position: absolute;
top: 25%;
}

