how to select first class in css selector code example Example: select first div css #content_id div.class_name:first-child { /*your style*/ }