css select first containing code example Example: select first div css #content_id div.class_name:first-child { /*your style*/ }