It's a bigger problem set (3 problems!) and will take you longer than the previous one. Don't put it off and fall behind! Start tonight!
# switch to starter branch to get new starter code
git checkout starter
# download new starter code
git pull
# switch back to main branch for coding
git checkout main
# merge in new starter code (use default msg)
git merge starter --no-edit
# code and enjoy!
Get the starter code from the starter branch, but do all of your work on main.
index.html
style.css
ugly web page
It is also possible to specify an online font that the browser will download and display.
Fonts are installed "per computer", so not every computer has the same fonts (which is why you set a default with font-family).
Fonts are installed "per computer", so not every computer has the same fonts (which is why you set a default with font-family).
p {
font-family: 'Helvetica', 'Arial', sans-serif;
}
Use this font
If first isn't available,
use this
If nothing else,
use this style of font-face
All browsers have a "default" font size--generally 16px. We use relative font sizing in case of variations.
Note that units are "measurement units" (think: inches)
em | relative to the parent font size | By default 2em = 32px But if the parent's font-size was 20px, then 2em = 40px |
rem | relative to the root (body's) font size of 16px | 2rem = 32px usually |
% | relative to parent font size or dimension, can use for width or height | if parent width is 300px, then 50% = 150px |
px | absolute measurement (do not use for fonts) | 16px = 16px |
You can use the display property to set whether an element is block or inline (or something else).
Choose elements based on semantics, not appearance!
Apply spacing to elements by manipulating the size of their "box".
Read: through Chapter 8
Project Proposal - we'll get feedback soon!
Problem Set 03 due Friday!!
Don't wait on problem3 !
Next: Responsive Design & Media Queries