styles.css 456 B

12345678910111213141516171819202122232425262728293031
  1. .container {
  2. text-align: center;
  3. padding-top: 3em;
  4. }
  5. .item {
  6. width: 60px;
  7. height: 60px;
  8. display: inline-block;
  9. background-color: purple;
  10. color: white;
  11. line-height: 60px;
  12. margin: 10px 5px;
  13. }
  14. /* .item:first-child {
  15. background-color: green;
  16. } */
  17. .item:last-child {
  18. background-color: blue;
  19. }
  20. .item:first-of-type {
  21. background-color: greenyellow;
  22. }
  23. /* .item:last-of-type {
  24. background-color: skyblue;
  25. } */