<div class="favorite-pokemon-container">
<h1 id="main-title" class="title">List of my favorite pokemon!</h1>
<ul id="main-list" class="list">
<li><a href="https://www.pokemon.com/us/pokedex/pikachu">Pikachu <img src="https://assets.pokemon.com/assets/cms2/img/pokedex/full/025.png" width=100></a></li>
<li><a href="https://assets.pokemon.com/assets/cms2/img/pokedex/full/006.png">Charizard<img src="https://assets.pokemon.com/assets/cms2/img/pokedex/full/006.png" width=100></a></li>
<li><a href="https://assets.pokemon.com/assets/cms2/img/pokedex/full/031.png">Nidoqueen<img src="https://assets.pokemon.com/assets/cms2/img/pokedex/full/031.png" width=100></a></li>
<li><a class="rare" href="https://assets.pokemon.com/assets/cms2/img/pokedex/full/144.png">Articuno<img src="https://assets.pokemon.com/assets/cms2/img/pokedex/full/144.png" width=100></a></li>
<li><a href="https://assets.pokemon.com/assets/cms2/img/pokedex/full/051.png">Dugtrio<img src="https://assets.pokemon.com/assets/cms2/img/pokedex/full/051.png" width=100></a></li>
<li><a href="https://assets.pokemon.com/assets/cms2/img/pokedex/full/094.png">Gengar<img src="https://assets.pokemon.com/assets/cms2/img/pokedex/full/094.png" width=100></a></li>
</ul>
</div>
<p class="footer-text"> Please click <a href="https://thedukh.com/2021/04/on-css-shorthand-properties/">here</a> for the article about CSS shorthand properties.
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;1,300;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Antonio:wght@300;400;500&display=swap");
body {
font-family: Lato;
}
h1 {
color: black;
font-size: 40px;
text-align: center;
margin: 5px;
}
#main-list {
list-style: none;
display: flex;
color: black;
text-decoration: none;
}
#main-list a {
font: 20px Antonio;
color: inherit;
text-decoration: inherit;
background-color: pink;
padding: 10px 30px;
margin: 10px;
display: flex;
flex-direction: column;
text-align: center;
border-radius: 6px;
}
#main-list .rare {
background-color: salmon;
color: initial;
}
.footer-text {
margin-top: 300px;
text-align: center;
}
.favorite-pokemon-container {
display: flex;
flex-direction: column;
align-items: center;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.