implemented several css rules

Implemented some css rules and helper fucntions