
Lets setup your environment so are ready to hit the ground running when we start writing some HTML and CSS!
Begin by using a provided pokemon card image, outline the card areas with shapes in Google Draw, and build a one-column CSS grid with multiple rows to recreate the layout.
Set up the project by creating a new folder for the pokemon card, generating an index.html with HTML scaffolding, and adding an h1 hello world to preview the page.
Set up a global reset with the universal selector, zero out padding and margins, apply box-sizing to border-box, and center a Pokémon card on a white background with flex.
Learn to shape a pokemon card with CSS grid by setting width to 450px and height to 672px, adding border radius, overflow hidden, and a shadow.
Design a Pokémon card layout using css grid, featuring a title row with rarity, name, health, and type. Configure grid areas, columns, and rows for precise alignment and styling.
Learn to style a Pokémon card using CSS grid by adjusting the title row margins and adding a reusable icon element for a fire symbol, including image resource setup.
Create a character image section for the Pokémon card with blue background, 270px height, 20px side margins, a 5px border, and load the Charmander image from resources.
Build and style the character meta section of a pokemon card using CSS grid, applying a yellow background, 25px height, and bold italic center-aligned text in a paragraph.
Learn to build a Pokémon card UI with CSS grid, displaying character abilities, including ability name, description, cost, damage, and icons.
Build the character stats section by detailing weaknesses, resistance, and retreat cost, then layout a three-column grid with repeat(3, 1fr) and bold 12px labels and icons.
Here is the dot you need for this lesson, ⬤ . Just copy and paste this in.
Apply a background image to the Pokemon card, position it behind with absolute positioning, set its size to cover, and use hue-rotate to simulate type colors.
In this course I will be teaching you how to use CSS Grid to build a Pokémon card from scratch. I believe that building something fun is the fastest way to learn anything new, so why not a Pokémon card? Prior knowledge of CSS is not required. In fact, CSS Grid is so awesome it should be one of the first things you learn!
In my career I started off learning CSS by using tables, then floats, then flex and now grid. Its been fun seeing the evolvement of CSS through out my career. There are a lot of cool design libraries coming out that help reduce the need to know CSS at its foundation. These libraries are great and help get a product off the ground quickly but what happens when you need to design something custom a unique to your product? This is where knowing CSS from its core will help.
By the end of this course I hope you love CSS as much as I do. The ability create something from the ground up is very satisfying. Thank you for taking the time to check out my course on learning CSS Grid by building a Pokémon card!
Cheers!
Austin