some situation to set inline styles to element on the page using html inputs,project is developed using CodeIgniter framework , for security reasons I had enabled XSS filtering Globally in application/config/config.php
First you enable $config['global_xss_filtering'] = TRUE; in config file. then inline css work properly.
Because of XSS Filtering inline Styles not worked, To overcome this situation i had manually disabled XSS Filtering.
Trending Tutorials