Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert shorthand CSS to longhand?

Is there any tool which can automatically convert shorthand css to longhand? I need this cause I want to use SmartSprites which does not work well with shorthand.

And prefably also a tool which does the reverse, so after the sprite computation i can minify the css as much as possible...

Also any other solutions for automatic spiriting is welcome, basically im looking for some command line tools which can be integrated into the build process so that the developers still develop on the raw css code.

like image 968
sajal Avatar asked Aug 05 '10 17:08

sajal


People also ask

What is a CSS shorthand?

What is CSS shorthand? CSS shorthand is a group of CSS properties that allow values of multiple properties to be set simultaneously. These values are separated by spaces. For example, the border property is shorthand for the border-width, border-style, and border-color properties.

What is shorthand syntax?

The shorthand syntax in the AWS CLI makes it easier for users to input parameters that are flat (non-nested structures). The format is a comma-separated list of key-value pairs.

What is background shorthand?

The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.

What is the first value of border shorthand property used in CSS?

Default value is "none". Defines the color of the border.


1 Answers

You can use Dragonfly on Opera. Dragonfly is like Firebug on Firefox and Chrome but developed by Opera. There is a function in Dragonfly which let you alter the shorthand and vica versa. Check opera.com/dragonfly/documentation/

like image 136
Wollen Muts Avatar answered Oct 20 '22 01:10

Wollen Muts