How can I prevent extra image assets with CSS styles?« Back to Questions List

I'm using CSS styles to reuse my image files. It works great!

My problem is when I create my style, the image layer I add the css style to also gets exported. So I end up with extra assets in my skins folder.

How can I prevent this?


Asked by Soul Creative
Added September 19, 2014 5:24 am

Do you have the right answer? If you do other users will benefit from your contribution, share your knowledge with the community!

Use a Shape for Layers, Image for Styles

Export Kit will render all your PSD layers as-is. So this means that if you have an image layer in your layout – it will render as an image.

CSS Styles are dynamic and can apply to any layer.  Because you are using CSS Styles with Images, this means that you are also using CSS Images (CSS Images use a DIV tag).  
Because shapes also use a DIV tag, and DO NOT render images – you can use a shape rather than an image in your design – and add the image to the CSS style.

Using shapes in your layout will render only the images in the styles, and prevent ”extra image assets” in the skins.

Answer by admin
Answered On September 19, 2014 1:55 pm #
Looking for another answer? View other questions in CSS Image Folder or get premium support for guaranteed results.
Asked by Soul Creative
1 answer
Last Answered 10 years ago by admin


Recent Answers

asked by nmax
asked by shanrt
asked by Ali Sodikin
[+] View All Recent Questions

Share Your Knowledge!

Contribute to the community and help other users to benefit from your answer with experience and knowledge.