-
Notifications
You must be signed in to change notification settings - Fork 4
Day 4
Keep using the files you set the colors on previously. Now, add some new rules.
Give your h1 "double spacing" with a line-height of 200%. Give it a font-family of your choice, with a fallback. Apply a text-shadow, play around to find something you like. I recommend a color of #CCC.
Try aligning your h2s in the center, and giving them the same font as your h1
Give your paragraphs an indentation of 3em or so. Try giving them a font size that's just under the normal, or just over if you prefer. ie, a .9 or 1.1 em
Make your ul / ol / dl, whichever, have a font-weight of bold. We're going to use inheritance here to let the list-items pick that up from their parent.
-
,the comma selector, "AND" - the
classattribute and. - the
idattribute and# - naming things
- descendant selector:
span
Give a "featured" class to some (but not all) of your list items. Then write a selector that "calls-out" those items, perhaps by turning them red-ish (#C70000).
Check out your handiwork.
Next up, choose a special phrase in your text. Maybe it's your name or some other combination of words that are significant. Wrap that phrase in a span, give it a class, and write a selector on that class that makes the font bold and large.
or, CSS's rules of precedence
Browser defaults < External < embedded < inline < attributes
Introduction to Github and git.
- Border
- width
- style
- color
- TRBL
- Padding
- TRBL
- 1, 2, 3, 4 arguments
Headings
- Working with your MPWS, put padding on the h1 (15px looks pretty nice)
- Give your h2s a 2px, dashed bottom border with a color of your choice
Footer
- Put a top border on your footer. Make it a solid, "thin" border with a lighter gray color like
#aeaed4 - Give the footer a bit of padding on the top, around
10pxshould be good. - Try lightening up your footer's text if it's copyright, by changing its color from the default
#000to#333.
figurefigcaption
- Grab an image off of [unsplash.com].
- Create a new html file and inside of there place a figure, img (to your unsplash photo) and a caption (figcaption)
- Get your image under control - put a css
widthon it. - Put padding and border on the figure as well
- Choose a nice font to go with your image, and center the caption.
border-radiusbox-shadowopacity
background-imagebackground-repeatbackground-positionbackground-attachmentbackground-imagebackground-clipbackground-originbackground-size