CSS used in the Positioning section

CSS used in the Positioning section


CSS PropertyCSS ValueExplanation
/* */A colourCSS comment - more than one line
//A colourCSS comment - one line
position:relative, absolute, fixedTypes of positioning
topA pixel valuePosition an element on the page
bottomA pixel valuePosition an element on the page
leftA pixel valuePosition an element on the page
rightA pixel valuePosition an element on the page
z-indexA numerical valueUsed to stack elements one behind the other
floatleft, rightFloat an element left or right
clearleft, right, bothClear a floated element

Comments