get first element with class css code example Example: css first element p:first-child { font-size: 1.5em; }