In this exercise we will practice the following topics:
- CSS Variables
- the
calc
function - Using
::before
and::after
creatively.
-
in
1.html
You have somediv
elements decorated with thefancy-borders
class:
- Make the elements look like this when they have a fancy border:
- Now define two custom properties:
--fancy-thickness
, and--fancy-color
and make them affect the thickness and color of the border. NOTE Make sure the decoration is aligned properly in the middle of the thin border. Use thecalc
function to achieve this.
- Make the elements look like this when they have a fancy border:
-
Create a tooltip to any
<a>
element that displays the address in a popup above the link.
- Notice the spacial border
- Notice the gradient background
- The image does not show it, but make it animate :-)