Changed function "createCssRules".

regarding issue #223

@Maheshkumar-Kakade posted a solution that worked for us
Merge remote-tracking branch 'origin/issue223'