How to get relative CSS from photoshop artboard?

Tags: css,photoshop

Problem :

So, where I work we design banners in Photoshop, and then use the elements of the design to make HTML5 banners. It's a tedious process at times, redesigning everything in CSS to make it look as in Photoshop. In photoshop, I can use the x,y-values of some objects and use it in CSS for exact repurposing, but it still is more work than I prefer. In photoshop, one can select a layer and klick "copy CSS" which copies the layout to clipboard. However, since we are using artboards, new feature for CC15, the 'left' and 'top' values are based on the entire document rather than to a specific artboard. So if the banner format I'm working on is in the third artboard from the left, my 'left:' property for an object in that banner, would be say 600px instead of 20px due to the artboards location in the document.

Q1: I guess it is a very specific question, but I'm wondering if there is a way to copy CSS relative to an artboard?

Q2: If not, would it be an easy enough feature to implement? I'm an okay programmer, but I've never worked with PS plugins.

Solution :

Try css3ps photoshop plugin, it should do the job for you. It will generate you text layers size border radius positions stroke gradient overlay inner shadow inner glow outer glow drop shadow and much more based on selected layers in photoshop.

    CSS Howto..

    How to dim an image keeping transparency untouched with CSS or JS?

    How to scale down retina image sprite with css

    How do I reference this textarea and checkbox?

    CSS: how to calculate margin inside a div for a fluid layout

    How to set div to display in only one line?

    How to add the very last border on the sub menu items

    How do I animate this box to have a pop out effect?

    CSS isn't shown when HTML file is opened in Word

    How to create popups in css /Javascript?

    Flexslider - How to make two slider functioning together (images and a paragraph text) using a single directionNav?

    How to apply CSS to nested Unordered Lists?

    How to make sure the users see the new logo?

    How to make a menu have submenus in pure CSS

    How to make a vertically extendable DIV box from this image?

    CSS - how to display submenu options horizontally while maintaining spacing of horizontal main menu options

    How to make a key shape using css?

    How to expand textarea to fit text vertically and horizontally?

    How to have two elements with scrollbars next to each other?

    How to apply multiple transforms in CSS?

    How to use Grunt while continually compressing css / javascript

    How do I set up the Zurb Foundation icons?

    How to use CssStyleCollection for a UserControl?

    How to set height to wrap text only in certain screen size

    In emacs how do I add a second type of commenting to a css derived mode?

    How can I extend the width of a child div to go beyond the parent div's width?

    How do I get css links to resolve correctly when adding a PathInfo value?

    How to give different content to every td in the table

    How to set CSS position properties to none ?

    How can I prevent overflow from a fieldset?

    Dilemma in deciding how to create CSS for H1, H2, H3 etc