Post

CSS

Media query: https://developer.mozilla.org/en-US/docs/Web/CSS/@media

CSS Box Alignment

Box aligment properties

source

  • first-child
  • first-of-type
1
2
3
4
5
6
<div class="parent">
  <h1>Child</h1>   <!-- h1:first-child, h1:first-of-type -->
  <div>Child</div> <!-- div:nth-child(2), div:first-of-type -->
  <div>Child</div>
  <div>Child</div>
</div>
This post is licensed under CC BY 4.0 by the author.