Day 58: Learning CSS Grids by Building a Magazine

Hello Everyone! It’s been a while. Getting back to learning CSS Grids. Here are 10 steps I took today:

  • Gave the hr a color by adjusting the border property. Gave the hr selector a border property set to 1px solid rgba(120, 120, 120, 0.6).

Day 58 no1a.png

Day 58 no1b.png

  • Created a .quote selector. Gave it a color property set to #00beef, a font-size property set to 2.4rem, and a text-align property set to center.

Day 58 no 2ab.png

Day 58 no 2a.png

  • To make the quote text stand out more, gave the .quote selector a font-family property set to Raleway with a fallback of sans-serif.

Day 58 no3a.png

Day 58 no3b.png

  • What is a quote without quotation marks? Created a .quote::before selector and quote: selector and set the content property to " with a space following it.

Day 58 no4a.png

Day 58 no4b.png

  • Now it's time to style the second section. Note that it has the text and text-with-images values for the class attribute, which means it is already inheriting the styles from your .text rule. Created a .text-with-images selector and set the display property to grid.

Day 58 no5a.png

Day 58 no5b.png

  • There should be a column for text and a column for images. Gave the .text-with-images selector a grid-template-columns property set to 1fr 2fr. Also set the column-gap property to 3rem to provide more spacing between the columns.

Day 58 no6a.png

Day 58 no6b.png

  • Gave the .text-with-images selector a margin-bottom property set to 3rem.

Day 58 no7a.png

Day 58 no7b.png

  • Created a .lists selector and set the list-style-type property to none. This got rid of the bullet points on the list items.

Day 58 no8a.png

Day 58 no8b.png

  • Gave the .lists selector a margin-top property set to 2rem.

Day 58 no9a.png

Day 58 no9b.png

  • Created a .lists li rule to target the list items within your .lists element. Gave it a margin-bottom property set to 1.5rem.

Day 58 no10a.png

Day 58 no10b.png That's all for today. Thanks for reading.