Week 4 Part 2 Flashcards
Default behaviour is not to overlap
Block element
Will not overlap within the block they are contained in
Default is that inline elements will not overlap within the block they are contained in
T/F - Block and inline elements usually have their own height, independent of their content
False.
By default block and inline elements have the height of their content.
T/F - Inline elements have the width of their content
True
T/F - Block elements have a width that spans the width of their parent
True
This property was created to allow authors to specify how elements should behave in layouts
The display property
Default Layour
Display:Inline
display: block;
Displays element as block element (like <p>)
display: none;
Element will not be displayed (no effect on layout)
This makes elements appear in a chosen area in a sea of text
float. float left = element on left , text on right
After float is used, this is used to prevent subsequent elements from floating on the left / right
clear: left / right/ both / none
What does clear:none do?
Lets elements float on either side
Position properties: default, appear in document, linear flow
position: static
Position properties: positioned relative to its normal position
position: relative
Position properties: relative to a browser window
position: fixed