Getting More Advanced With Design - Display and Positioning Cheatsheet - Codecademy
Getting More Advanced With Design - Display and Positioning Cheatsheet - Codecademy
/
CSS position: absolute
The value absolute for the CSS property
position enables an element to ignore sibling .element {
elements and instead be positioned relative to its position: absolute;
closest parent element that is positioned with }
relative or absolute . The absolute
value removes an element entirely from the document
ow. By using the positioning attributes top , left ,
bottom and right , an element can be
positioned anywhere as expected.
/
The CSS clear property
The CSS clear property speci es how an element
should behave when it bumps into another element /*This determines that no other elements
within the same containing element.The clear is within the same containing element are
usually used in combination with elements having the allowed to float on the left side of
CSS float property. This determines on which sides this element.*/
oating elements are allowed to oat. .element {
clear: left;
}