Exercise 1
Headings and paragraphs
Headings and paragraphs
Links
Buttons
Spans and labels
Text columns
Paragraph spans
Unordered lists
Ordered lists
Border-radius and object-fit
Circular images with aspect-ratio
Image border and shadow
Image transparency
Background images
Gradient backgrounds
Gradient masks
Centering using auto margins
Flex display
Symmetrical grids
Asymmetrical grids
Inline-block display
Z-index and negative margins
Absolute position
Fixed position
Sticky position
Overflow (hidden)
Background image overlay
Image overlay
Vector fill property
Icons as images
Social media icons
Font Awesome icons in labels
Font Awesome icons in buttons
Custom icons in buttons
Nth-childs
Nth-childs in menu list items
Text highlight using span
Before pseudoelements with custom graphics
Line above text with before pseudoelements
Custom bullets using background-image on list items
Custom bullets using before pseudoelements on list items
Custom bullets using Font Awesome
Ordered list with circles
Advanced ordered lists
Adding a word to an ordered list marker
Ordered list marker on a separate line
Background image transparency
Centering using span and visibility
Z-index for overlap effect
Root variables
Root variables with rgba
Calc, vh and mix-blend-mode
Em units
Grid column span
First click on the green ‘What I will be making’ button. This is how your end result should look like.
Next, click on the ‘What I need’ button to get some basic parameters to use in the code. Such as the font family, colors, image URLs etc. These are just recommendations. Use your own judgement for the rest of the values, such as paddings, margins, spacing and size.
You don’t need to know how to write HTML for these exercises. However, you WILL need to take a look at the ‘HTML’ code in the exercise. You can switch from HTML to CSS tab in the Codepen screen. Then read the built HTML code for each exercise to understand the structure and find the classes that are defined for the elements that you will be editing. Use those predefined classes to style them in CSS.
Click on the ‘CSS’ tab in the Codepen screen and start typing your CSS code here, just below the ‘Write CSS code here’ comment. You can also delete this comment if you wish.
For example, if a ‘div’ has a class “text-content” in HTML, you can then style this class in CSS tab. Just don’t forget to add a dot before calling a class out (.text-content)
You should see a live preview of the CSS code that you are editing in the ‘Result’ tab to the right of the Codepen screen.
If you are stuck, click on the ‘Show me the code’ button. This will reveal the code that you can also completely copy and paste in the CSS tab of the exercise to see the result.
Or you can just go back to the lessons and watch them again.
Have fun and feel free to reach out!