3

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;}
2
  • 5
    cssminifier.com Commented Apr 10, 2013 at 11:55
  • This cssminifier conver all my styles in one line,but i need other rule will be in another line Commented Apr 10, 2013 at 12:08

1 Answer 1

1

Check these URL for CSS beautifier and to optimize:

cssbeautify
fwpolice

In there you can define your own rule:

codebeautifier.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.