Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formatting css styles

I have large css file that contains css rule format like this:

.rounded-block
{
   border: 1px solid #c0c0c0;
   width: 500px;
   margin: 15px 0 15px 0;
}

I need format this file like this

.rounded-block{border: 1px solid #c0c0c0;width: 500px;margin: 15px 0 15px 0;}

How can I do this?I can do this in visual studio?

Edit: I need that the other rule will be in another line

.rounded-block{border: 1px solid #c0c0c0;width: 500px;margin: 15px 0 15px 0;}
.anotherrule{margin: 15px;}
like image 315
vborutenko Avatar asked Feb 19 '26 10:02

vborutenko


1 Answers

Check these URL for CSS beautifier and to optimize:

cssbeautify
fwpolice

In there you can define your own rule:

codebeautifier.

like image 69
Code Lღver Avatar answered Feb 21 '26 02:02

Code Lღver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!