CSS Lynda Flashcards
3 different ways to apply css
external stylesheet
style attribute, ex: style=
style tag, ex:
What does the font measurement em mean?
vertical size of the font
How do you calculate the total box size
content + padding + border + margin
How do you make internet explorer follow the standard way of interpreting the box model for your external css file?
at the top of your external css file include the standards mode code with nothing above it not even comments
What happens to the children of a parent element when you put position relative on the parent?
It positions children elements relative to the parent
it creates a reference point for absolute positioning.
relative positioning doesn’t change the position of the element it is placed on
What is fixed positioning relative to
the window
What is the requirement to place z positioning?
the element must have a position
Why does content go underneath floats?
floating removing it from the layout positioning
however inline items will move around floats
What is padding?
space added inside of the border
Do vertical margins collapse?
Yes