In this lesson from freeCodeCamp's Applied Visual Design section we look at another cool shape we can create with CSS. In the last lesson we looked at creating a crescent moon shape with our CSS and in this lesson we look at creating a heart shape. We utilize psedo classes to create a heart shape. We use the ::before and ::after pseduo classes to make our heart. The before and after pseduo classes allow us to add something after and before an element we select. We learn that in order for the before and after pseduo-elements to work correctly they need a defined content property which is often used to add things like text or a photo to the element that is selected. For our challenge we leave the content property defined as an empty string.
In questa pagina del sito puoi guardare il video online freeCodeCamp's Create a More Complex Shape Using CSS and HTML della durata di ore minuti seconda in buona qualità , che l'utente ha caricato We Will Code 01 ottobre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 213 volte e gli è piaciuto 6 spettatori. Buona visione!