diff --git a/news-homepage/README.md b/news-homepage/README.md index f87e350..468e4e3 100644 --- a/news-homepage/README.md +++ b/news-homepage/README.md @@ -57,4 +57,16 @@ padding: ); ``` +Learned how to add a counter with css. + +```css +main .cards article { + counter-increment: cardscount 1; +} + +main .cards article .content .count::before { + content: counter(cardscount, decimal-leading-zero); +} +``` + Also learned more about how to use grid. Still a lot to learn though. \ No newline at end of file diff --git a/news-homepage/index.html b/news-homepage/index.html index 907c086..939dfbd 100644 --- a/news-homepage/index.html +++ b/news-homepage/index.html @@ -63,7 +63,7 @@