I have been trying to target only the first four list items in the using css selector nth-child and/or nth-last-child
Hello first
Your code works if you fix the typo:
jsFiddle example
Although a better solution may be:
ul li:nth-child(-n+4) { font-weight:bold; }