NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix b » css1 / css2 properties

bottom


This property defines the y (vertical) coordinate for a positioned element, relative to the bottom of the enclosing element or browser window. Values can be specified as lengths (inches, pixels, and so on), as a percentage of the containing object's dimensions, or as auto, which lets this property function as determined by the browser or as defined by the parent element.

Examples


#div1 {position: absolute; left: 100px; bottom: 150px;}
#div2 {position: absolute; left: 50%; bottom: 30%;}
#div3 {position: absolute; left: auto; bottom: auto;}

Browser and CSS Support Notes


CSS2
IE 5, 5.5, 6
Nav 6, 7
Opera 5, 6, 7

(X)HTML Elements
CSS Properties
Back: border properties Next: caption-side
< Home | About | Chapters | Examples | Errata | Reference | Site Map >