JavaScript in the Browser
position
specifies the type of positioning to use:
static
: default. According to normal flow
(left-to-right, top-to-bottom).absolute
: relative to containing
element. fixed
: relative to browser window. Does
not scroll. relative
: find its position using normal
flow then adjust relative to that position. position: absolute; left: 10px; right 20px; top:
20%; bottom: 20%;
z-index
: specifies stacking other (who is
visible). visibility
:
hidden
but is laid out (space reserved).visible
display: none
makes it disappear completely
(back with block
or inline
)opacity: .75
: make transparent (CSS3: Firefox
only). Example.filter: alpha(opacity=75)
: make transparent
(IE only) overflow
: what happens if all the text does not fit:
visible
: write over the rest of
page.hidden
: hide extra. scroll
: put up a scroll bar. auto
: put up scroll bar but only if needed. 36 of 66