332 posts
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Envato Studio (Microlancer) Beta Tester
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
dekciw says
ATM I ’m coding my first template for ThemeForest. The thing is that I’m used to style CSS like this:
.selector {xx: a; yy: b;}
So the question is.. Is that OK? Or should I style CSS like this:
.selector {
   xx: a;
   yy: b;
}
before submiting my template?
4317 posts ThemeForest Reviewer
  • Envato Staff
  • Reviewer
  • Community Moderator
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Venezuela
  • Has been a member for 5-6 years
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
+9 more
Ivor Reviewer says

Both are valid. I would recommend this tool to beautify your css — http://procssor.com/

332 posts
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Envato Studio (Microlancer) Beta Tester
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
dekciw says

Thanks for a quick response and great resource, Ivor!

I guess, topic can be locked now.

443 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
  • United States
SplitV says
Ivor said
Both are valid. I would recommend this tool to beautify your css — http://procssor.com/

That is a probably the best beautifier I’ve seen now. Thanks!

315 posts
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
  • Attended a Community Meetup
  • Exclusive Author
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
SyamilMJ says

Awesome stuff Ivor. Thanks!

2051 posts
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
  • Exclusive Author
  • United States
Landonw says
Ivor said
Both are valid. I would recommend this tool to beautify your css — http://procssor.com/

Brilliant! Thanks mate!

107 posts Too Much is Never Enough
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Bought between 1 and 9 items
  • Referred between 100 and 199 users
  • Has been a member for 3-4 years
premitheme says

Thanks Ivor for the link.

@dekciw I use both in the same stylesheet, when I have a CSS rule with just one or two properties I use the first example and save the space, for more than 3 properties I use the second one.

212 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Portugal
shaki says

Guys, maybe I did something wrong, but my CSS file has some id’s and classes I created, BUT after using ProCSSror many things disappeared.

Did I do something wrong?

2 posts
  • Has been a member for 2-3 years
nimbuz says
shaki said
Guys, maybe I did something wrong, but my CSS file has some id’s and classes I created, BUT after using ProCSSror many things disappeared. Did I do something wrong?

Can you post your CSS ?

212 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Portugal
shaki says
nimbuz said
shaki said
Guys, maybe I did something wrong, but my CSS file has some id’s and classes I created, BUT after using ProCSSror many things disappeared. Did I do something wrong?
Can you post your CSS ?

Hi,

What happens is it cuts my CSS – I insert a file with 1000 lines and the output is shorter.

Edit:

Got it working. I had a line like this one: <!-some info-> and it breaked the whole thing from here. But now it grabs all CSS .

:) Great Script!!!

by
by
by
by
by
by