where is the style library in sharepoint
Style Library is located on the top level publishing web site. So you need to enable the publishing feature on the root site as well.