Adding css rest code

Contributed by Stuart Lamour