get first of class by selector css code example Example: select first div css #content div:first-child { /*css*/ }