If this is an issue for anyone else I found that the boilerplate CSS that was being imported was overwriting the behaviour. I would double check there isn't a top level css file with body CSS that is taking priority.