Feb 4 Notes
Images should be in their own folder.
Make sure to create meaningful file names.
Always use "class" attribute for style.
Don't do default margin and padding (margin:0 padding:0 applied as a universal rule).
padding: 100px (top) 5px (right) 5px (bottom) 50px (left);
padding: 100px (top) 5px (right/left) 50px (bottom);
padding: 100px (top/bottom) 50px (right/left);
Feb 5 Notes
By default, block elements are as wide as their parent.
By default, inline elements take up the width of their content.
Margins on inline elements only exist on the beginning and at the end of the margin.
Feb 13 Notes
CSS Selectors
- Universal: *
- Element: h1
- Multiple: h1, p (use a comma)
- Descendant: nav li (use a space, no comma)
- Class: .special (multiple elements with the same class)
- ID: #id (only one, unique)
Feb 20 Notes
CSS Styling:
- Style from the top down
- Give your body a width (ex: width: 750px; margin: 0 auto;)
- Overflow: auto;
Feb 27 Notes
CSS3 Notes:
- CSS3 is not adopted by all browsers.
- Should be used for the experience level only.
- Make sure to use prefixes that are specific to individual browsers.
